Skip to content

Commit

Permalink
Update subdocuments.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed May 30, 2024
1 parent 10e83ae commit 2290c81
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/types/subdocuments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,6 @@ function gh14601() {
f3: [{ field1: 'test' }]
});

const obj = item.toObject();

const obj2 = item.f2.toObject();

expectAssignable<{ _id: Types.ObjectId, field1: string }>(obj2);
const f2obj = item.f2.toObject();
expectAssignable<{ _id: Types.ObjectId, field1: string }>(f2obj);
}

0 comments on commit 2290c81

Please sign in to comment.