/order/getTotal.js Backend unit tests
This commit is contained in:
parent
3875f4298c
commit
06a3f0b6bc
|
@ -0,0 +1,9 @@
|
||||||
|
const app = require(`../../../../server/server`);
|
||||||
|
|
||||||
|
fdescribe('order getTotal()', () => {
|
||||||
|
it('should call the getTaxes method and return undefined if its called with a string', async() => {
|
||||||
|
let result = await app.models.Order.getTotal(1);
|
||||||
|
|
||||||
|
expect(result.total).toEqual(14.45);
|
||||||
|
});
|
||||||
|
});
|
Loading…
Reference in New Issue