Skip to content

Commit 1ce7a72

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

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
@@ -961,9 +961,9 @@ describe('document.populate', function() {
961961
const Code = db.model('Code', CodeSchema);
962962
const CodeUser = db.model('CodeUser', UserSchema);
963963

964-
const code = await new Code({
964+
const code = await Code.create({
965965
code: 'test code'
966-
}).save();
966+
});
967967

968968
await CodeUser.create({
969969
username: 'TestUser',

0 commit comments

Comments
 (0)