salix/services/loopback/common/methods/ticket/specs/get-volume.spec.js

13 lines
373 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', done => {
let ticketFk = 1;
app.models.Ticket.getVolume(ticketFk)
2018-04-17 11:38:40 +00:00
.then(response => {
expect(response[0][0].m3_total).toEqual(0.008);
done();
});
});
});