Jest fixes
gitea/salix/dev This commit looks good Details

This commit is contained in:
Juan Ferrer 2019-10-31 15:38:20 +01:00
parent f759c1e11a
commit 4fcaa2e507
1 changed files with 2 additions and 4 deletions

View File

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