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 <[email protected]>
  • Loading branch information
vkarpov15 and hasezoey authored Mar 21, 2024
1 parent 8310207 commit 1ce7a72
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 @@ -961,9 +961,9 @@ describe('document.populate', function() {
const Code = db.model('Code', CodeSchema);
const CodeUser = db.model('CodeUser', UserSchema);

const code = await new Code({
const code = await Code.create({
code: 'test code'
}).save();
});

await CodeUser.create({
username: 'TestUser',
Expand Down

0 comments on commit 1ce7a72

Please sign in to comment.