mirror of
https://github.com/strapi/strapi.git
synced 2025-12-13 07:55:33 +00:00
test tracking is only called once
This commit is contained in:
parent
de322f2874
commit
3db4ac4b44
@ -1233,11 +1233,12 @@ describe('Marketplace page', () => {
|
||||
`);
|
||||
});
|
||||
|
||||
it('sends an event when the user enters the marketplace', () => {
|
||||
it('sends a single tracking event when the user enters the marketplace', () => {
|
||||
const trackUsage = jest.fn();
|
||||
useTracking.mockImplementation(() => ({ trackUsage }));
|
||||
render(App);
|
||||
|
||||
expect(trackUsage).toHaveBeenCalledWith('didGoToMarketplace');
|
||||
expect(trackUsage).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user