refactor tests
gitea/salix/dev This commit looks good
Details
gitea/salix/dev This commit looks good
Details
This commit is contained in:
parent
6573e61a7c
commit
02c63b0d5f
|
@ -161,11 +161,13 @@ describe('claim', () => {
|
||||||
|
|
||||||
describe('onUpdateGreugeResponse()', () => {
|
describe('onUpdateGreugeResponse()', () => {
|
||||||
it('should do nothing', () => {
|
it('should do nothing', () => {
|
||||||
|
spyOn(controller.$http, 'post');
|
||||||
spyOn(controller.card, 'reload');
|
spyOn(controller.card, 'reload');
|
||||||
spyOn(controller.vnApp, 'showSuccess');
|
spyOn(controller.vnApp, 'showSuccess');
|
||||||
|
|
||||||
controller.onUpdateGreugeResponse('CANCEL');
|
controller.onUpdateGreugeResponse('CANCEL');
|
||||||
|
|
||||||
|
expect(controller.$http.post).not.toHaveBeenCalledWith();
|
||||||
expect(controller.card.reload).not.toHaveBeenCalledWith();
|
expect(controller.card.reload).not.toHaveBeenCalledWith();
|
||||||
expect(controller.vnApp.showSuccess).not.toHaveBeenCalledWith('Greuge inserted!');
|
expect(controller.vnApp.showSuccess).not.toHaveBeenCalledWith('Greuge inserted!');
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue