Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test(types): add test case for using post(save) with no next() arg
  • Loading branch information
vkarpov15 committed Apr 9, 2024
commit f76c7e308c4ffe385af8211c122670c2c4a45efe
4 changes: 4 additions & 0 deletions test/types/middleware.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ schema.post<ITest>('save', function() {
console.log(this.name);
});

schema.post<ITest>('save', async function() {
console.log(this.name);
});

schema.post<ITest>('save', function(err: Error, res: ITest, next: Function) {
console.log(this.name, err.stack);
});
Expand Down