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

12 lines
348 B
JavaScript

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