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

11 lines
399 B
JavaScript
Raw Normal View History

2018-12-21 11:50:28 +00:00
const app = require(`${serviceRoot}/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);
});
});