front-end unit test fixed

This commit is contained in:
Joan Sanchez 2018-08-30 07:15:04 +02:00
parent 3c954f13f3
commit bd38d07af4
1 changed files with 2 additions and 2 deletions

View File

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