Jest fixes
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
parent
f759c1e11a
commit
4fcaa2e507
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue