Skip to content

Commit b2e8fb1

Browse files
W-A-Jamesdurran
andauthored
Apply suggestions from code review
Co-authored-by: Durran Jordan <durran@gmail.com>
1 parent f56abaf commit b2e8fb1

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

test/types/schema_helpers.test-d.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,10 @@ expectAssignable<SchemaWithIdType | null>(
7979
await typeTestCollection.findOneAndReplace({ a: 1 }, { a: 5 })
8080
);
8181
expectAssignable<SchemaWithIdInterface | null>(
82-
(
83-
await interfaceTestCollection.findOneAndReplace(
84-
{ a: 1 },
85-
{ a: 5 },
86-
{ includeResultMetadata: true }
87-
)
88-
).value
82+
await interfaceTestCollection.findOneAndReplace({ a: 1 }, { a: 5 })
8983
);
9084
expectAssignable<SchemaWithIdType | null>(
91-
(await typeTestCollection.findOneAndUpdate({ a: 1 }, { a: 5 }, { includeResultMetadata: true }))
92-
.value
85+
await typeTestCollection.findOneAndUpdate({ a: 1 }, { a: 5 })
9386
);
9487
expectAssignable<SchemaWithIdInterface | null>(
9588
await interfaceTestCollection.findOneAndUpdate({ a: 1 }, { a: 5 })

0 commit comments

Comments
 (0)