diff options
| author | Shinigami <[email protected]> | 2022-02-19 22:42:46 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-02-19 22:42:46 +0100 |
| commit | c4da9c0cda2b77114d0e8fe124cb094f51b304d7 (patch) | |
| tree | ec6ab50bec2098a6e67abf88a7d780119d910581 /src | |
| parent | 431c10887ae43c5ace1f653db91b5540c511db7e (diff) | |
| download | faker-c4da9c0cda2b77114d0e8fe124cb094f51b304d7.tar.xz faker-c4da9c0cda2b77114d0e8fe124cb094f51b304d7.zip | |
test: rewrite helpers tests (#499)
Diffstat (limited to 'src')
| -rw-r--r-- | src/helpers.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers.ts b/src/helpers.ts index 2b1be94b..385d4f3e 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -306,7 +306,7 @@ export class Helpers { * faker.helpers.repeatString('Hello world! ', 1) // 'Hello world! ' * faker.helpers.repeatString('Hello world! ', 2) // 'Hello world! Hello world! ' */ - repeatString(string: string, num = 0): string { + repeatString(string = '', num = 0): string { let text = ''; for (let i = 0; i < num; i++) { text += string.toString(); |
