2018-09-06 14:49:13 +00:00
|
|
|
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 () => {
|
2018-09-06 14:49:13 +00:00
|
|
|
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);
|
2018-09-06 14:49:13 +00:00
|
|
|
});
|
|
|
|
});
|