2018-04-19 09:20:41 +00:00
|
|
|
const app = require(`${servicesDir}/ticket/server/server`);
|
2018-04-17 11:38:40 +00:00
|
|
|
|
|
|
|
describe('ticket getVolume()', () => {
|
2018-08-01 12:01:42 +00:00
|
|
|
it('should call the getVolume method', async() => {
|
2018-04-03 14:10:39 +00:00
|
|
|
let ticketFk = 1;
|
2018-08-01 12:01:42 +00:00
|
|
|
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);
|
2018-04-03 14:10:39 +00:00
|
|
|
});
|
|
|
|
});
|
2018-04-18 12:37:17 +00:00
|
|
|
});
|