front-end unit test fixed
This commit is contained in:
parent
3c954f13f3
commit
bd38d07af4
|
@ -58,8 +58,8 @@ describe('Item', () => {
|
|||
controller.$onInit();
|
||||
$httpBackend.flush();
|
||||
|
||||
$httpBackend.when('POST', `/item/api/Items/1/updateTaxes`).respond('ok');
|
||||
$httpBackend.expect('POST', `/item/api/Items/1/updateTaxes`);
|
||||
$httpBackend.when('POST', `/item/api/Items/updateTaxes`).respond('ok');
|
||||
$httpBackend.expect('POST', `/item/api/Items/updateTaxes`);
|
||||
controller.submit();
|
||||
$httpBackend.flush();
|
||||
|
||||
|
|
Loading…
Reference in New Issue