Skip to content

Commit

Permalink
chore: updating tests with todos
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasgriffintn committed Apr 14, 2024
1 parent 8b25f50 commit 086ea40
Show file tree
Hide file tree
Showing 3 changed files with 571 additions and 1,355 deletions.
5 changes: 5 additions & 0 deletions src/validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ function validateOption(option: string, value: number, strict?: boolean): void {
throw new Error("retryMessageDelay must be less than 42300");
}
break;
case "pollingWaitTimeMs":
if (value < 0) {
throw new Error("pollingWaitTimeMs must be greater than 0.");
}
break;
default:
if (strict) {
throw new Error(`The update ${option} cannot be updated`);
Expand Down
Loading

0 comments on commit 086ea40

Please sign in to comment.