fix karma test
gitea/salix/dev This commit looks good Details

This commit is contained in:
Bernat 2019-06-03 12:41:57 +02:00
parent fa7b79b1c8
commit 798d4063ea
1 changed files with 2 additions and 2 deletions

View File

@ -90,8 +90,8 @@ describe('Order', () => {
spyOn(controller.vnApp, 'showSuccess');
spyOn(controller.$state, 'go');
$httpBackend.when('POST', 'order/api/Orders/new', {landed: 101, addressFk: 101, agencyModeFk: 101}).respond(200, 1);
$httpBackend.expect('POST', 'order/api/Orders/new', {landed: 101, addressFk: 101, agencyModeFk: 101});
$httpBackend.when('POST', 'order/api/Orders/new', {landed: 101, addressId: 101, agencyModeId: 101}).respond(200, 1);
$httpBackend.expect('POST', 'order/api/Orders/new', {landed: 101, addressId: 101, agencyModeId: 101});
controller.createOrder();
$httpBackend.flush();