salix/services/loopback/common/methods/ticket/specs/getSales.spec.js

12 lines
362 B
JavaScript
Raw Normal View History

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();
});
});