Skip to content

Commit dfe3ff3

Browse files
committed
test fix
1 parent 2270073 commit dfe3ff3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/compass/src/app/components/home.spec.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { type ComponentProps } from 'react';
22
import { expect } from 'chai';
33
import sinon from 'sinon';
4-
import { ThemedHome } from './home';
4+
import ThemedHome from './home';
55
import type { DataService } from 'mongodb-data-service';
66
import { WithAtlasProviders } from './entrypoint';
77
import {
@@ -13,6 +13,7 @@ import {
1313
} from '@mongodb-js/testing-library-compass';
1414
import type { AllPreferences } from 'compass-preferences-model/provider';
1515
import type { ConnectionInfo } from '@mongodb-js/compass-connections/provider';
16+
import { InMemoryConnectionStorage } from '@mongodb-js/connection-storage/provider';
1617

1718
const createDataService = () =>
1819
({
@@ -48,6 +49,7 @@ const HOME_PROPS = {
4849
showSettings: () => {},
4950
getAutoConnectInfo: () => Promise.resolve(undefined),
5051
showWelcomeModal: false,
52+
connectionStorage: new InMemoryConnectionStorage(),
5153
} as const;
5254

5355
describe('Home [Component]', function () {

0 commit comments

Comments
 (0)