Skip to content

Commit

Permalink
Update test/types.map.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 Oct 27, 2022
1 parent 998f19a commit 938964f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/types.map.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1073,12 +1073,12 @@ describe('Map', function() {

const address = await AddressModel.create({ city: 'London' });

const { _id } = await new UserModel({
const { _id } = await UserModel.create({
name: 'Name',
addresses: {
home: [address._id]
}
}).save();
});

// Using `.$*`
let query = UserModel.findById(_id);
Expand Down

0 comments on commit 938964f

Please sign in to comment.