Skip to content

Commit

Permalink
test(types): address code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Nov 7, 2022
1 parent 6c78334 commit 78b91b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/types/schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ function gh12590() {

expectType<SchemaType<User>>(UserSchema.path('hashed_password'));

UserSchema.path('hashed_password').validate(function(v: any) {
UserSchema.path('hashed_password').validate(function(v) {
expectType<HydratedDocument<User>>(this);
if (this._password && this._password.length < 8) {
this.invalidate('password', 'Password must be at least 8 characters.');
Expand Down

0 comments on commit 78b91b4

Please sign in to comment.