Skip to content

Commit 8310207

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

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
@@ -965,7 +965,7 @@ describe('document.populate', function() {
965965
code: 'test code'
966966
}).save();
967967

968-
await new CodeUser({
968+
await CodeUser.create({
969969
username: 'TestUser',
970970
extras: [
971971
{
@@ -976,7 +976,7 @@ describe('document.populate', function() {
976976
}
977977
}
978978
]
979-
}).save();
979+
});
980980

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

0 commit comments

Comments
 (0)