From 0f4b6b85c14d1db2f30bfc5c75ea7276e8b46778 Mon Sep 17 00:00:00 2001 From: Gerard Date: Fri, 23 Nov 2018 08:56:53 +0100 Subject: [PATCH] test fixed --- client/order/src/create/card.spec.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/client/order/src/create/card.spec.js b/client/order/src/create/card.spec.js index 42ca110b1..3699f43a3 100644 --- a/client/order/src/create/card.spec.js +++ b/client/order/src/create/card.spec.js @@ -19,12 +19,6 @@ describe('Order', () => { })); describe('set order', () => { - it(`should not set order if the value given is null`, () => { - controller.order = null; - - expect(controller.order).toEqual({}); - }); - it(`should set order if the value given is not null`, () => { controller.order = 1; @@ -88,7 +82,7 @@ describe('Order', () => { $httpBackend.flush(); expect(controller.vnApp.showSuccess).toHaveBeenCalledWith('Data saved!'); - expect(controller.$state.go).toHaveBeenCalledWith("order.card.catalog", {id: 1}); + expect(controller.$state.go).toHaveBeenCalledWith('order.card.catalog', {id: 1}); }); }); });