Skip to content

Commit

Permalink
Update src/finance.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Piotr Kuczynski <[email protected]>
  • Loading branch information
ejcheng and pkuczynski authored Mar 27, 2022
1 parent 2109588 commit 60b3f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/finance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export class Finance {
*/
pin(length: number = 4): string {
if (length < 1) {
throw new Error('PIN length must be 1 or greater');
throw new Error('minimum length is 1');
}
return Array.from({ length }, () => this.faker.datatype.number(9)).join('');
}
Expand Down

0 comments on commit 60b3f94

Please sign in to comment.