From 4fcaa2e5075ebef9def35ad1e2da95bf917d2560 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Thu, 31 Oct 2019 15:38:20 +0100 Subject: [PATCH] Jest fixes --- modules/order/front/create/card.spec.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/order/front/create/card.spec.js b/modules/order/front/create/card.spec.js index debfd7279..32949fd54 100644 --- a/modules/order/front/create/card.spec.js +++ b/modules/order/front/create/card.spec.js @@ -63,10 +63,8 @@ describe('Order', () => { controller.order.addressFk = 101; controller.order.landed = 101; - let filter = {addressFk: controller.order.addressFk, landed: controller.order.landed}; - filter = encodeURIComponent(JSON.stringify(filter)); - $httpBackend.whenGET(`Agencies/landsThatDay?filter=${filter}`).respond({data: 1}); - $httpBackend.expectGET(`Agencies/landsThatDay?filter=${filter}`); + $httpBackend.whenRoute('GET', 'Agencies/landsThatDay') + .respond({data: 1}); controller.getAvailableAgencies(); $httpBackend.flush();