salix/services/loopback/common/methods/order/specs/getTotal.spec.js

10 lines
254 B
JavaScript
Raw Normal View History

const app = require(`${servicesDir}/order/server/server`);
2018-08-10 14:30:18 +00:00
2018-10-24 09:56:15 +00:00
describe('order getTotal()', () => {
it('should return the total', async() => {
2018-08-10 14:30:18 +00:00
let result = await app.models.Order.getTotal(1);
2018-10-24 09:56:15 +00:00
expect(result).toEqual(145.09);
2018-08-10 14:30:18 +00:00
});
});