Skip to content

Commit

Permalink
tests: add missing unit test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Jun 14, 2021
1 parent 7c645bc commit bf1faec
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ describe('TreeData Service', () => {

service.init(gridStub);
service.applyToggledItemStateChanges([{ itemId: 4, isCollapsed: true }], 'full-collapse', true, true);
service.applyToggledItemStateChanges([{ itemId: 4, isCollapsed: true }], 'full-collapse', true, true); // calling twice shouldn't change toggledItems array

expect(dataGetItemsSpy).toHaveBeenCalled();
expect(beginUpdateSpy).toHaveBeenCalled();
Expand Down

0 comments on commit bf1faec

Please sign in to comment.