Unit test changed query path
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2021-03-10 10:53:22 +01:00
parent a4d2c531a3
commit c144d9ed47
1 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ describe('Entry', () => {
];
const serializedParams = $httpParamSerializer({buys});
const query = `Entries/1/importPreview?${serializedParams}`;
const query = `Entries/1/importBuysPreview?${serializedParams}`;
$httpBackend.expectGET(query).respond(200, buys);
controller.fetchBuys(buys);
$httpBackend.flush();
@ -111,7 +111,7 @@ describe('Entry', () => {
};
const params = controller.import;
const query = `Entries/1/import`;
const query = `Entries/1/importBuys`;
$httpBackend.expectPOST(query, params).respond(200, params.buys);
controller.onSubmit();
$httpBackend.flush();