12 lines
362 B
JavaScript
12 lines
362 B
JavaScript
const app = require(`${servicesDir}/ticket/server/server`);
|
|
|
|
describe('ticket getSales()', () => {
|
|
it('should return the sales of a ticket', async () => {
|
|
let sales = await app.models.Ticket.getSales(16);
|
|
|
|
expect(sales.length).toEqual(4);
|
|
expect(sales[0].tags).toBeDefined();
|
|
expect(sales[1].claim).toBeDefined();
|
|
});
|
|
});
|