@@ -34,7 +34,6 @@ describe('NamespaceProvider', function () {
3434 it ( 'should immediately render content if database exists' , async function ( ) {
3535 const instanceManager = new TestMongoDBInstanceManager ( {
3636 databases : [ { _id : 'foo' } ] as any ,
37- preferences,
3837 } ) ;
3938 await renderWithActiveConnection (
4039 < PreferencesProvider value = { preferences } >
@@ -49,7 +48,6 @@ describe('NamespaceProvider', function () {
4948 it ( 'should immediately render content if collection exists' , async function ( ) {
5049 const instanceManager = new TestMongoDBInstanceManager ( {
5150 databases : [ { _id : 'foo' , collections : [ { _id : 'foo.bar' } ] } ] as any ,
52- preferences,
5351 } ) ;
5452 await renderWithActiveConnection (
5553 < PreferencesProvider value = { preferences } >
@@ -62,7 +60,7 @@ describe('NamespaceProvider', function () {
6260 } ) ;
6361
6462 it ( "should not render content when namespace doesn't exist" , async function ( ) {
65- const instanceManager = new TestMongoDBInstanceManager ( { preferences } ) ;
63+ const instanceManager = new TestMongoDBInstanceManager ( ) ;
6664 await renderWithActiveConnection (
6765 < PreferencesProvider value = { preferences } >
6866 < MongoDBInstancesManagerProvider value = { instanceManager } >
@@ -74,7 +72,7 @@ describe('NamespaceProvider', function () {
7472 } ) ;
7573
7674 it ( 'should render content eventually if namespace is resolved async' , async function ( ) {
77- const instanceManager = new TestMongoDBInstanceManager ( { preferences } ) ;
75+ const instanceManager = new TestMongoDBInstanceManager ( ) ;
7876 const instance = instanceManager . getMongoDBInstanceForConnection ( ) ;
7977 sandbox . stub ( instance , 'fetchDatabases' ) . callsFake ( ( ) => {
8078 instance . databases . add ( { _id : 'foo' } ) ;
@@ -100,7 +98,6 @@ describe('NamespaceProvider', function () {
10098 const onNamespaceFallbackSelect = sandbox . spy ( ) ;
10199 const instanceManager = new TestMongoDBInstanceManager ( {
102100 databases : [ { _id : 'foo' } ] as any ,
103- preferences,
104101 } ) ;
105102 await renderWithActiveConnection (
106103 < PreferencesProvider value = { preferences } >
@@ -121,9 +118,7 @@ describe('NamespaceProvider', function () {
121118
122119 it ( 'should call onNamespaceFallbackSelect with `null` if namespace is not found' , async function ( ) {
123120 const onNamespaceFallbackSelect = sandbox . spy ( ) ;
124- const instanceManager = new TestMongoDBInstanceManager ( {
125- preferences,
126- } ) ;
121+ const instanceManager = new TestMongoDBInstanceManager ( ) ;
127122 await renderWithActiveConnection (
128123 < PreferencesProvider value = { preferences } >
129124 < MongoDBInstancesManagerProvider value = { instanceManager } >
0 commit comments