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