UNPKG

@gameroom/gameroom-kit

Version:

Node kit for the Gameroom API

20 lines (19 loc) 605 B
// describe('Adjustment.get(sort)', () => { // it('should get a sorted array of adjustments', async () => { // let error, result; // try { // result = await Adjustment.get({ sort: { created_at: -1 } }); // } catch(err) { // error = err; // }; // should.not.exist(error); // should.exist(result); // result.should.be.a('array'); // should.equal(result.length, 3); // let previous = result.shift(); // for (let object of result) { // (previous.created_at >= object.created_at).should.be.true; // previous = object; // }; // }); // });