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

10 lines
287 B
JavaScript

const app = require(`${servicesDir}/order/server/server`);
describe('order getVolumes()', () => {
it('should return the volumes of a given order id', async() => {
let [result] = await app.models.Order.getVolumes(1);
expect(result.volume).toEqual(0.04);
});
});