Skip to content

Commit 8087351

Browse files
committed
fix tests
1 parent 626c518 commit 8087351

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/compass-connections-navigation/src/connections-navigation-tree.spec.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* eslint-disable @typescript-eslint/no-empty-function */
22
import React from 'react';
33
import {
4-
render,
4+
renderWithConnections,
55
screen,
66
cleanup,
77
within,
@@ -144,10 +144,13 @@ describe('ConnectionsNavigationTree', function () {
144144
enableRenameCollectionModal: true,
145145
...preferencesOverrides,
146146
});
147-
return render(
147+
return renderWithConnections(
148148
<PreferencesProvider value={preferences}>
149149
<ConnectionsNavigationTree {...props} {...customProps} />
150-
</PreferencesProvider>
150+
</PreferencesProvider>,
151+
{
152+
connections: connections.map((x) => x.connectionInfo),
153+
}
151154
);
152155
}
153156

0 commit comments

Comments
 (0)