Skip to content

Commit c5b16fe

Browse files
committed
test: add additional assert re: code review comment
1 parent 4a2cb0b commit c5b16fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/types/models.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,4 +769,5 @@ function gh13897() {
769769
const Document = model<IDocument>('Document', documentSchema);
770770
const doc = new Document({ name: 'foo' });
771771
expectType<Date>(doc.createdAt);
772+
expectError(new Document<IDocument>({ name: 'foo' }));
772773
}

0 commit comments

Comments
 (0)