diff --git a/services/order/common/methods/order/specs/getTotal.spec.js b/services/order/common/methods/order/specs/getTotal.spec.js new file mode 100644 index 000000000..036d46e6c --- /dev/null +++ b/services/order/common/methods/order/specs/getTotal.spec.js @@ -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); + }); +});