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 committed Mar 21, 2024
1 parent 1a62288 commit 8310207
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 @@ -965,7 +965,7 @@ describe('document.populate', function() {
code: 'test code'
}).save();

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

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

0 comments on commit 8310207

Please sign in to comment.