Skip to content

Commit

Permalink
Update test/document.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 authored Feb 17, 2025
1 parent d34f38f commit 17469d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/document.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14325,8 +14325,8 @@ describe('document', function() {
);

const doc2 = await Discriminator.findById(doc).orFail();
assert.strictEqual(doc2.field1, undefined);
assert.strictEqual(doc2.field2, 'test2');
assert.strictEqual(doc2.field1, undefined);

const obj = doc2.toObject();
assert.strictEqual(obj.field2, 'test2');
Expand Down

0 comments on commit 17469d3

Please sign in to comment.