Skip to content

Commit 2290c81

Browse files
authored
Update subdocuments.test.ts
1 parent 10e83ae commit 2290c81

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

test/types/subdocuments.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,6 @@ function gh14601() {
143143
f3: [{ field1: 'test' }]
144144
});
145145

146-
const obj = item.toObject();
147-
148-
const obj2 = item.f2.toObject();
149-
150-
expectAssignable<{ _id: Types.ObjectId, field1: string }>(obj2);
146+
const f2obj = item.f2.toObject();
147+
expectAssignable<{ _id: Types.ObjectId, field1: string }>(f2obj);
151148
}

0 commit comments

Comments
 (0)