Unit test changed query path
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
a4d2c531a3
commit
c144d9ed47
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue