Skip to content

Commit 1a62288

Browse files
vkarpov15hasezoey
andauthored
Update test/document.populate.test.js
Co-authored-by: hasezoey <[email protected]>
1 parent 2c79d41 commit 1a62288

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/document.populate.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ describe('document.populate', function() {
10231023
code: 'test code'
10241024
});
10251025

1026-
await new CodeUser({
1026+
await CodeUser.create({
10271027
username: 'TestUser',
10281028
extras: {
10291029
config: {
@@ -1032,7 +1032,7 @@ describe('document.populate', function() {
10321032
}
10331033
}
10341034
}
1035-
}).save();
1035+
});
10361036

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

0 commit comments

Comments
 (0)