Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
IslandRhythms committed Feb 13, 2024
1 parent e6769c9 commit 7c696a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/model.hydrate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ describe('model', function() {
users: [{ ref: 'User', type: Schema.Types.ObjectId }]
});

const User = db.model('UserTestHydrate', userSchema);
db.model('UserTestHydrate', userSchema);
const Company = db.model('CompanyTestHyrdrate', companySchema);

const users = [{ _id: new mongoose.Types.ObjectId(), name: 'Val'}];
const users = [{ _id: new mongoose.Types.ObjectId(), name: 'Val' }];
const company = { _id: new mongoose.Types.ObjectId(), name: 'Booster', users: [users[0]] };

const C = Company.hydrate(company, null, { hydratedPopulatedDocs: true });
Expand Down

0 comments on commit 7c696a3

Please sign in to comment.