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 425f2ff commit 562b3ceCopy full SHA for 562b3ce
test/integration/crud/crud_api.test.ts
@@ -959,7 +959,11 @@ describe('CRUD API', function () {
959
960
it('throws an error', async function () {
961
const error = await collection
962
- .findOneAndUpdate({ a: 1 }, { $set: undefined, $unset: undefined })
+ .findOneAndUpdate(
963
+ { a: 1 },
964
+ { $set: undefined, $unset: undefined },
965
+ { ignoreUndefined: true }
966
+ )
967
.catch(error => error);
968
expect(error.message).to.include('All atomic operators provided have undefined values.');
969
});
0 commit comments