2018-08-21 12:03:58 +00:00
|
|
|
const app = require(`${servicesDir}/ticket/server/server`);
|
|
|
|
|
|
|
|
describe('ticket getSales()', () => {
|
2018-11-06 12:58:13 +00:00
|
|
|
it('should return the sales of a ticket', async () => {
|
|
|
|
let sales = await app.models.Ticket.getSales(16);
|
2018-08-21 12:03:58 +00:00
|
|
|
|
2018-11-06 12:58:13 +00:00
|
|
|
expect(sales.length).toEqual(4);
|
|
|
|
expect(sales[0].tags).toBeDefined();
|
|
|
|
expect(sales[1].claim).toBeDefined();
|
2018-08-21 12:03:58 +00:00
|
|
|
});
|
|
|
|
});
|