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', () => {
|
||||
jest.spyOn(controller.vnApp, 'showSuccess');
|
||||
|
||||
const data = {
|
||||
rows: {id: 1},
|
||||
claimDestinationFk: 1
|
||||
};
|
||||
$httpBackend.expect('POST', `Claims/updateClaimDestination`, data).respond({});
|
||||
controller.save(data);
|
||||
$httpBackend.expect('POST', `Claims/updateClaimDestination`).respond({});
|
||||
controller.onResponse();
|
||||
$httpBackend.flush();
|
||||
|
||||
expect(controller.vnApp.showSuccess).toHaveBeenCalled();
|
||||
|
|
Loading…
Reference in New Issue