Skip to content

Commit 444a1b7

Browse files
committed
move to function call
1 parent 963497c commit 444a1b7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

packages/compass-workspaces/src/stores/workspaces.spec.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@ import { createPluginTestHelpers } from '@mongodb-js/testing-library-compass';
1313
type WorkspacesStore = ReturnType<typeof activateWorkspacePlugin>['store'];
1414

1515
describe('tabs behavior', function () {
16-
const { activatePluginWithConnections } = createPluginTestHelpers(
17-
WorkspacesPlugin.withMockServices({
18-
instancesManager: new TestMongoDBInstanceManager(),
19-
}),
20-
{ onActiveWorkspaceTabChange: () => undefined }
21-
);
22-
2316
function configureStore() {
17+
const { activatePluginWithConnections } = createPluginTestHelpers(
18+
WorkspacesPlugin.withMockServices({
19+
instancesManager: new TestMongoDBInstanceManager(),
20+
}),
21+
{ onActiveWorkspaceTabChange: () => undefined }
22+
);
2423
const result = activatePluginWithConnections();
2524
return result.plugin.store;
2625
}

0 commit comments

Comments
 (0)