Skip to content

Commit

Permalink
test(combo): fix failing events test
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorSlavov committed Oct 12, 2020
1 parent c27c3ae commit 08590c4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,11 @@ describe('igxCombo', () => {
owner: mockObj,
};
combo.handleOpening(inputEvent);
expect(combo.onOpened.emit).toHaveBeenCalledWith(Object.assign({}, inputEvent, { owner: combo }));
const expectedCall = Object.assign({}, inputEvent, { owner: combo });
expect(combo.onOpened.emit).toHaveBeenCalledWith(expectedCall);
expect(inputEvent.owner).toEqual(mockObj);
combo.handleOpening(inputEvent);
expect(combo.onClosing.emit).toHaveBeenCalledWith(Object.assign({}, inputEvent, { owner: combo }));
expect(combo.onClosing.emit).toHaveBeenCalledWith(expectedCall);
expect(inputEvent.owner).toEqual(mockObj);
let sub = combo.onOpened.subscribe((e: CancelableBrowserEventArgs & IBaseEventArgs) => {
e.cancel = true;
Expand Down

0 comments on commit 08590c4

Please sign in to comment.