@@ -794,42 +794,6 @@ describe('Connection String', function () {
794794 expect ( ( ) => new MongoClient ( 'mango+srv://localhost:23' ) ) . to . throw ( / I n v a l i d s c h e m e / i) ;
795795 } ) ;
796796
797- describe ( 'when deprecated options are used' , ( ) => {
798- it ( 'useNewUrlParser emits a warning' , async ( ) => {
799- let willBeWarning = once ( process , 'warning' ) ;
800- parseOptions ( 'mongodb://host?useNewUrlParser=true' ) ;
801- let [ warning ] = await willBeWarning ;
802- expect ( warning )
803- . to . have . property ( 'message' )
804- . that . matches ( / u s e N e w U r l P a r s e r h a s n o e f f e c t / ) ;
805-
806- willBeWarning = once ( process , 'warning' ) ;
807- //@ts -expect-error: using unsupported option on purpose
808- parseOptions ( 'mongodb://host' , { useNewUrlParser : true } ) ;
809- [ warning ] = await willBeWarning ;
810- expect ( warning )
811- . to . have . property ( 'message' )
812- . that . matches ( / u s e N e w U r l P a r s e r h a s n o e f f e c t / ) ;
813- } ) ;
814-
815- it ( 'useUnifiedTopology emits a warning' , async ( ) => {
816- let willBeWarning = once ( process , 'warning' ) ;
817- parseOptions ( 'mongodb://host?useUnifiedTopology=true' ) ;
818- let [ warning ] = await willBeWarning ;
819- expect ( warning )
820- . to . have . property ( 'message' )
821- . that . matches ( / u s e U n i f i e d T o p o l o g y h a s n o e f f e c t / ) ;
822-
823- willBeWarning = once ( process , 'warning' ) ;
824- //@ts -expect-error: using unsupported option on purpose
825- parseOptions ( 'mongodb://host' , { useUnifiedTopology : true } ) ;
826- [ warning ] = await willBeWarning ;
827- expect ( warning )
828- . to . have . property ( 'message' )
829- . that . matches ( / u s e U n i f i e d T o p o l o g y h a s n o e f f e c t / ) ;
830- } ) ;
831- } ) ;
832-
833797 describe ( 'when mongodbLogPath is in options' , function ( ) {
834798 let stderrStub ;
835799 let stdoutStub ;
0 commit comments