Skip to content

Commit ae26fbc

Browse files
committed
use chai.expect for asserting instanceof
1 parent 3f98aca commit ae26fbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/integration/crud/document_validation.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('Document Validation', function () {
3636

3737
// Ensure validation was correctly applied
3838
const err = await col.insertOne({ b: 1 }).catch(err => err);
39-
test.ok(err instanceof MongoServerError);
39+
expect(err).to.be.instanceOf(MongoServerError);
4040

4141
// Bypass valiation on insertOne
4242
await col.insertOne({ b: 1 }, { bypassDocumentValidation: true });

0 commit comments

Comments
 (0)