11 lines
406 B
JavaScript
11 lines
406 B
JavaScript
const app = require('vn-loopback/server/server');
|
|
|
|
describe('sale getClaimableFromTicket()', () => {
|
|
it('should return the claimable sales of a given ticket', async() => {
|
|
let claimableFromTicket = await app.models.Sale.getClaimableFromTicket(16);
|
|
|
|
expect(claimableFromTicket[0].concept).toBe('Ranged weapon longbow 2m');
|
|
expect(claimableFromTicket.length).toBe(3);
|
|
});
|
|
});
|