We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a675767 commit 7ef660bCopy full SHA for 7ef660b
1 file changed
src/input-tags.spec.js
@@ -27,7 +27,7 @@ describe('Module: angularjs-input-tags -', () => {
27
it('should be emit with formatted tag value', () => {
28
ctrl.$onInit();
29
ctrl.addTag({code: 1, text: '1'});
30
- expect(ctrl.onTagAdding).toHaveBeenCalledWith({code: 1, text: '1'});
+ expect(ctrl.onTagAdding).toHaveBeenCalledWith({tag: {code: 1, text: '1'}});
31
});
32
33
@@ -62,7 +62,7 @@ describe('Module: angularjs-input-tags -', () => {
62
ctrl.tags = ['Demo'];
63
ctrl.removeTag({code: 1, text: '1'});
64
expect(ctrl.onTagRemoving).toHaveBeenCalled();
65
- expect(ctrl.onTagRemoving).toHaveBeenCalledWith({code: 1, text: '1'});
+ expect(ctrl.onTagRemoving).toHaveBeenCalledWith({tag: {code: 1, text: '1'}});
66
67
68
it('should remove matching element by code', () => {
0 commit comments