fix: frontTest
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
5921891161
commit
1e11191e79
|
@ -156,12 +156,8 @@ describe('claim', () => {
|
||||||
it('should perform a post query and show a success message', () => {
|
it('should perform a post query and show a success message', () => {
|
||||||
jest.spyOn(controller.vnApp, 'showSuccess');
|
jest.spyOn(controller.vnApp, 'showSuccess');
|
||||||
|
|
||||||
const data = {
|
$httpBackend.expect('POST', `Claims/updateClaimDestination`).respond({});
|
||||||
rows: {id: 1},
|
controller.onResponse();
|
||||||
claimDestinationFk: 1
|
|
||||||
};
|
|
||||||
$httpBackend.expect('POST', `Claims/updateClaimDestination`, data).respond({});
|
|
||||||
controller.save(data);
|
|
||||||
$httpBackend.flush();
|
$httpBackend.flush();
|
||||||
|
|
||||||
expect(controller.vnApp.showSuccess).toHaveBeenCalled();
|
expect(controller.vnApp.showSuccess).toHaveBeenCalled();
|
||||||
|
|
Loading…
Reference in New Issue