4496-entry.buy_import #1047

Merged
joan merged 2 commits from 4496-entry.buy_import into dev 2022-09-13 09:58:31 +00:00
1 changed files with 2 additions and 3 deletions
Showing only changes of commit b02aa8466c - Show all commits

View File

@ -111,9 +111,8 @@ describe('Entry', () => {
'volume': 1125} 'volume': 1125}
]; ];
const serializedParams = $httpParamSerializer({buys}); const query = `Entries/1/importBuysPreview`;
const query = `Entries/1/importBuysPreview?${serializedParams}`; $httpBackend.expectPOST(query).respond(200, buys);
$httpBackend.expectGET(query).respond(200, buys);
controller.fetchBuys(buys); controller.fetchBuys(buys);
$httpBackend.flush(); $httpBackend.flush();