We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66a2ac6 commit 1641135Copy full SHA for 1641135
test/integration/crud/crud_api.test.ts
@@ -340,7 +340,7 @@ describe('CRUD API', function () {
340
// Execute the command with all steps defined
341
// will fail
342
const err = await cursor.toArray().catch(err => err);
343
- test.ok(err instanceof Error);
+ expect(err).to.be.instanceof(MongoServerError);
344
});
345
346
it('#toArray()', async function () {
@@ -892,7 +892,7 @@ describe('CRUD API', function () {
892
.collection('t20_1')
893
.bulkWrite(ops, { ordered: true, writeConcern: { w: 1 } })
894
.catch(err => err);
895
+ expect(err).to.be.instanceOf(MongoBulkWriteError);
896
}
897
898
0 commit comments