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

14 lines
379 B
JavaScript
Raw Normal View History

const app = require(`${servicesDir}/ticket/server/server`);
describe('ticket getTotalVolume()', () => {
it('should return the total volume of a ticket', async() => {
let ticketFk = 1;
2018-09-11 13:09:15 +00:00
let expectedResult = 0.078;
let result = await app.models.Ticket.getTotalVolume(ticketFk);
expect(result.totalVolume).toEqual(expectedResult);
});
});