2018-08-14 09:52:10 +00:00
|
|
|
const app = require(`${servicesDir}/order/server/server`);
|
|
|
|
|
|
|
|
describe('order getTotalVolume()', () => {
|
|
|
|
it('should return the total', async() => {
|
|
|
|
let result = await app.models.Order.getTotalVolume(1);
|
|
|
|
|
2018-10-10 09:17:55 +00:00
|
|
|
expect(result.totalVolume).toEqual(0.078);
|
2018-08-14 09:52:10 +00:00
|
|
|
expect(result.totalBoxes).toBeFalsy();
|
|
|
|
});
|
|
|
|
});
|