We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f98aca commit ae26fbcCopy full SHA for ae26fbc
1 file changed
test/integration/crud/document_validation.test.ts
@@ -36,7 +36,7 @@ describe('Document Validation', function () {
36
37
// Ensure validation was correctly applied
38
const err = await col.insertOne({ b: 1 }).catch(err => err);
39
- test.ok(err instanceof MongoServerError);
+ expect(err).to.be.instanceOf(MongoServerError);
40
41
// Bypass valiation on insertOne
42
await col.insertOne({ b: 1 }, { bypassDocumentValidation: true });
0 commit comments