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

11 lines
314 B
JavaScript

const app = require(`${servicesDir}/ticket/server/server`);
describe('ticket getTaxes()', () => {
it('should call the getTaxes method', async() => {
await app.models.Ticket.getTaxes(1)
.then(response => {
expect(response[0].tax).toEqual(20.95);
});
});
});