Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: numerical validation grammer #10924

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion coderd/activitybump_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func Test_ActivityBumpWorkspace(t *testing.T) {
expectedDeadlineStart := start.Add(tt.expectedBump).Add(time.Minute * -1)
expectedDeadlineEnd := end.Add(tt.expectedBump).Add(time.Minute)
require.GreaterOrEqual(t, updatedBuild.Deadline, expectedDeadlineStart, "new deadline should be greater than or equal to start")
require.LessOrEqual(t, updatedBuild.Deadline, expectedDeadlineEnd, "new deadline should be lesser than or equal to end")
require.LessOrEqual(t, updatedBuild.Deadline, expectedDeadlineEnd, "new deadline should be less than or equal to end")
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion site/src/utils/richParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const useValidationSchemaForRichParameters = (
if (templateParameter.validation_max < Number(val)) {
return ctx.createError({
path: ctx.path,
message: `Value must be lesser than ${templateParameter.validation_max}.`,
message: `Value must be less than ${templateParameter.validation_max}.`,
});
}
} else if (
Expand Down