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

12 lines
348 B
JavaScript
Raw Normal View History

const app = require(`${servicesDir}/ticket/server/server`);
2018-04-17 11:38:40 +00:00
describe('ticket getVolume()', () => {
it('should call the getVolume method', async() => {
let ticketFk = 1;
await app.models.Ticket.getVolume(ticketFk)
2018-04-17 11:38:40 +00:00
.then(response => {
2018-06-19 07:20:14 +00:00
expect(response[0].m3).toEqual(0.04);
});
});
});