salix/modules/ticket/back/methods/sale/specs/getClaimableFromTicket.spec.js

11 lines
396 B
JavaScript
Raw Normal View History

2019-01-24 08:08:28 +00:00
const app = require('vn-loopback/server/server');
describe('sale getClaimableFromTicket()', () => {
2019-01-10 06:26:10 +00:00
it('should return the claimable sales of a given ticket', async() => {
let claimableFromTicket = await app.models.Sale.getClaimableFromTicket(16);
2019-01-10 06:26:10 +00:00
expect(claimableFromTicket[0].concept).toBe('Object1 Gem1 5');
2018-10-01 12:57:51 +00:00
expect(claimableFromTicket.length).toBe(3);
});
});