/order/getTotal.js Backend unit tests

This commit is contained in:
gerard 2018-08-10 16:30:18 +02:00
parent 3875f4298c
commit 06a3f0b6bc
1 changed files with 9 additions and 0 deletions

View File

@ -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);
});
});