Skip to content

Commit

Permalink
test: address code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed May 8, 2024
1 parent 92fa6eb commit ed79348
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/types/create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ Test.create([{}]).then(docs => {

expectError(Test.create<ITest>({}));

Test.create<ITest>({ name: 'test' });
Test.create<ITest>({ _id: new Types.ObjectId('0'.repeat(24)), name: 'test' });

Test.insertMany({ name: 'test' }, {}, (err, docs) => {
expectType<CallbackError>(err);
expectType<Types.ObjectId>(docs[0]._id);
Expand Down

0 comments on commit ed79348

Please sign in to comment.