Skip to content

Commit 8d9b9ee

Browse files
committed
Add afterEach.
1 parent 8867812 commit 8d9b9ee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

assets/js/components/setup/ModuleSetup.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ describe( 'ModuleSetup', () => {
4747
let registry;
4848

4949
beforeEach( () => {
50-
mockTrackEvent.mockClear();
5150
registry = createTestRegistry();
5251
registry.dispatch( CORE_USER ).receiveGetDismissedItems( [] );
5352
registry.dispatch( CORE_USER ).receiveGetDismissedPrompts( {} );
@@ -57,6 +56,10 @@ describe( 'ModuleSetup', () => {
5756
provideModuleRegistrations( registry );
5857
} );
5958

59+
afterEach( () => {
60+
mockTrackEvent.mockClear();
61+
} );
62+
6063
describe( 'Analytics 4', () => {
6164
beforeEach( () => {
6265
provideModules( registry, [

0 commit comments

Comments
 (0)