salix/services/loopback/common/methods/sale/specs/getClaimableFromTicket.spec.js

11 lines
404 B
JavaScript
Raw Normal View History

const app = require(`${servicesDir}/ticket/server/server`);
describe('sale getClaimableFromTicket()', () => {
2018-11-06 12:59:16 +00:00
it('should return the claimable sales of a given ticket', async () => {
let claimableFromTicket = await app.models.Sale.getClaimableFromTicket(16);
expect(claimableFromTicket[0].concept).toBe('Gem of Time');
2018-10-01 12:57:51 +00:00
expect(claimableFromTicket.length).toBe(3);
});
});