Skip to content

Commit

Permalink
Update test/schema.uuid.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 Apr 24, 2023
1 parent 4332472 commit b321084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/schema.uuid.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ describe('SchemaUUID', function() {
const u1 = await User.create({ name: 'admin' });
const { _id } = await User.create({ name: 'created', createdBy: u1._id });

const pop = await User.findById(_id).populate('createdBy');
const pop = await User.findById(_id).populate('createdBy').orFail();
assert.equal(pop.createdBy.name, 'admin');

await pop.save();
Expand Down

0 comments on commit b321084

Please sign in to comment.