From 46756713ffde1f0bbfe09f9de50c66019c5c9029 Mon Sep 17 00:00:00 2001 From: Daniel Diaz <39510674+IslandRhythms@users.noreply.github.com> Date: Wed, 14 Feb 2024 14:33:43 -0500 Subject: [PATCH] Update models.test.ts --- test/types/models.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/types/models.test.ts b/test/types/models.test.ts index dd92a46f602..6761f031456 100644 --- a/test/types/models.test.ts +++ b/test/types/models.test.ts @@ -896,9 +896,7 @@ function gh4727() { const users = [{ _id: new mongoose.Types.ObjectId(), name: 'Val' }]; const company = { _id: new mongoose.Types.ObjectId(), name: 'Booster', users: [users[0]] }; - expectType | null>( - Company.hydrate(company, null, { hydratedPopulatedDocs: true }) - ); + return Company.hydrate(company, {}, { hydratedPopulatedDocs: true }) }