11import { expect } from 'chai' ;
22
33import { type MongoClient , ObjectId } from '../../../../src' ;
4- import { assert as test , ignoreNsNotFound , setupDatabase } from '../../shared' ;
4+ import { assert as test , setupDatabase } from '../../shared' ;
55
66describe ( 'Ignore Undefined' , function ( ) {
77 before ( function ( ) {
@@ -181,7 +181,7 @@ describe('Ignore Undefined', function () {
181181 describe ( 'ignoreUndefined A server' , function ( ) {
182182 it ( 'should correctly execute insert culling undefined' , async function ( ) {
183183 const coll = client . db ( ) . collection ( 'insert1' ) ;
184- await coll . drop ( ) . catch ( ignoreNsNotFound ) ;
184+ await coll . drop ( ) . catch ( ) ;
185185 const objectId = new ObjectId ( ) ;
186186 const res = await coll . insertOne (
187187 { _id : objectId , a : 1 , b : undefined } ,
@@ -197,7 +197,7 @@ describe('Ignore Undefined', function () {
197197
198198 it ( 'should correctly execute update culling undefined' , async function ( ) {
199199 const coll = client . db ( ) . collection ( 'update1' ) ;
200- await coll . drop ( ) . catch ( ignoreNsNotFound ) ;
200+ await coll . drop ( ) ;
201201 const objectId = new ObjectId ( ) ;
202202 const res = await coll . updateOne (
203203 { _id : objectId , a : 1 , b : undefined } ,
@@ -214,7 +214,7 @@ describe('Ignore Undefined', function () {
214214
215215 it ( 'should correctly execute remove culling undefined' , async function ( ) {
216216 const coll = client . db ( ) . collection ( 'remove1' ) ;
217- await coll . drop ( ) . catch ( ignoreNsNotFound ) ;
217+ await coll . drop ( ) ;
218218 const objectId = new ObjectId ( ) ;
219219 const res = await coll . insertMany ( [
220220 { id : objectId , a : 1 , b : undefined } ,
@@ -228,7 +228,7 @@ describe('Ignore Undefined', function () {
228228
229229 it ( 'should correctly execute remove not culling undefined' , async function ( ) {
230230 const coll = client . db ( ) . collection ( 'remove1' ) ;
231- await coll . drop ( ) . catch ( ignoreNsNotFound ) ;
231+ await coll . drop ( ) ;
232232 const objectId = new ObjectId ( ) ;
233233 const res = await coll . insertMany ( [
234234 { id : objectId , a : 1 , b : undefined } ,
0 commit comments