11import { completer , BASE_COMPLETIONS } from './' ;
2- import { signatures as shellSignatures , Topologies } from '@mongosh/shell-api' ;
2+ import { signatures as shellSignatures } from '@mongosh/shell-api' ;
33
44import { expect } from 'chai' ;
55
66let collections : string [ ] ;
77let databases : string [ ] ;
88const standalone600 = {
9- topology : ( ) => Topologies . Standalone ,
9+ topology : ( ) => ' Standalone' as const ,
1010 apiVersionInfo : ( ) => undefined ,
1111 connectionInfo : ( ) => ( {
1212 is_atlas : false ,
@@ -18,7 +18,7 @@ const standalone600 = {
1818 getDatabaseCompletions : ( ) => databases ,
1919} ;
2020const standalone440 = {
21- topology : ( ) => Topologies . Standalone ,
21+ topology : ( ) => ' Standalone' as const ,
2222 apiVersionInfo : ( ) => undefined ,
2323 connectionInfo : ( ) => ( {
2424 is_atlas : false ,
@@ -30,7 +30,7 @@ const standalone440 = {
3030 getDatabaseCompletions : ( ) => databases ,
3131} ;
3232const apiStrictParams = {
33- topology : ( ) => Topologies . Standalone ,
33+ topology : ( ) => ' Standalone' as const ,
3434 apiVersionInfo : ( ) => ( {
3535 version : '1' ,
3636 strict : true ,
@@ -41,7 +41,7 @@ const apiStrictParams = {
4141 getDatabaseCompletions : ( ) => databases ,
4242} ;
4343const sharded440 = {
44- topology : ( ) => Topologies . Sharded ,
44+ topology : ( ) => ' Sharded' as const ,
4545 apiVersionInfo : ( ) => undefined ,
4646 connectionInfo : ( ) => ( {
4747 is_atlas : false ,
@@ -54,7 +54,7 @@ const sharded440 = {
5454} ;
5555
5656const standalone300 = {
57- topology : ( ) => Topologies . Standalone ,
57+ topology : ( ) => ' Standalone' as const ,
5858 apiVersionInfo : ( ) => undefined ,
5959 connectionInfo : ( ) => ( {
6060 is_atlas : false ,
@@ -66,7 +66,7 @@ const standalone300 = {
6666 getDatabaseCompletions : ( ) => databases ,
6767} ;
6868const datalake440 = {
69- topology : ( ) => Topologies . Sharded ,
69+ topology : ( ) => ' Sharded' as const ,
7070 apiVersionInfo : ( ) => undefined ,
7171 connectionInfo : ( ) => ( {
7272 is_atlas : true ,
@@ -79,7 +79,7 @@ const datalake440 = {
7979} ;
8080
8181const localAtlas600 = {
82- topology : ( ) => Topologies . Standalone ,
82+ topology : ( ) => ' Standalone' as const ,
8383 apiVersionInfo : ( ) => undefined ,
8484 connectionInfo : ( ) => ( {
8585 is_atlas : false ,
@@ -100,7 +100,7 @@ const noParams = {
100100} ;
101101
102102const emptyConnectionInfoParams = {
103- topology : ( ) => Topologies . Standalone ,
103+ topology : ( ) => ' Standalone' as const ,
104104 apiVersionInfo : ( ) => undefined ,
105105 connectionInfo : ( ) => ( { } ) ,
106106 getCollectionCompletionsForCurrentDb : ( ) => collections ,
0 commit comments