Skip to content

Commit

Permalink
Update test/model.updateOne.test.js
Browse files Browse the repository at this point in the history
Co-authored-by: hasezoey <hasezoey@gmail.com>
  • Loading branch information
vkarpov15 and hasezoey committed Sep 17, 2024
1 parent 0107591 commit 176fb38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/model.updateOne.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1083,6 +1083,7 @@ describe('model: updateOne:', function() {
await Model.updateOne({}, update);
const doc = await Model.findById(_id);
assert.equal(doc.bar.valueOf(), foo.valueOf());
assert.equal(doc.foo, undefined);
});

it('throws CastError if $rename fails to cast to string (gh-1845)', async function() {
Expand Down

0 comments on commit 176fb38

Please sign in to comment.