Skip to content

Commit

Permalink
test: update click event count expected in LoanSearchFilterChips
Browse files Browse the repository at this point in the history
  • Loading branch information
emuvente committed Oct 3, 2024
1 parent 621935a commit d3925f5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe('LoanSearchFilterChips', () => {

await user.click(getByText('a'));

expect(filterConfig.config.a.getRemovedFacet).toHaveBeenCalledTimes(2);
expect(filterConfig.config.a.getRemovedFacet).toHaveBeenCalledTimes(1);
expect(filterConfig.config.a.getRemovedFacet)
.toHaveBeenCalledWith({ name: 'a' }, { name: 'a', key: 'a', __typename: 'TypeA' });
expect(emitted().updated[0]).toEqual([{ a: null }]);
Expand All @@ -113,7 +113,7 @@ describe('LoanSearchFilterChips', () => {

await user.click(getByText('a'));

expect(spyTrackEvent).toHaveBeenCalledTimes(2);
expect(spyTrackEvent).toHaveBeenCalledTimes(1);
expect(spyTrackEvent).toHaveBeenCalledWith('Lending', 'click-remove-filter-chip', 'TypeA-a');
});
});

0 comments on commit d3925f5

Please sign in to comment.