Skip to content

Commit

Permalink
Update test/document.populate.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 Mar 21, 2024
1 parent 2c79d41 commit 1a62288
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/document.populate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ describe('document.populate', function() {
code: 'test code'
});

await new CodeUser({
await CodeUser.create({
username: 'TestUser',
extras: {
config: {
Expand All @@ -1032,7 +1032,7 @@ describe('document.populate', function() {
}
}
}
}).save();
});

const codeUser = await CodeUser.findOne({ username: 'TestUser' }).populate(
'extras.config.paymentConfiguration.paymentMethods'
Expand Down

0 comments on commit 1a62288

Please sign in to comment.