11 lines
324 B
JavaScript
11 lines
324 B
JavaScript
const app = require(`${servicesDir}/order/server/server`);
|
|
|
|
describe('order getTotalVolume()', () => {
|
|
it('should return the total', async() => {
|
|
let result = await app.models.Order.getTotalVolume(1);
|
|
|
|
expect(result.totalVolume).toEqual(0.078);
|
|
expect(result.totalBoxes).toBeFalsy();
|
|
});
|
|
});
|