aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShinigami <[email protected]>2022-02-19 22:42:46 +0100
committerGitHub <[email protected]>2022-02-19 22:42:46 +0100
commitc4da9c0cda2b77114d0e8fe124cb094f51b304d7 (patch)
treeec6ab50bec2098a6e67abf88a7d780119d910581 /src
parent431c10887ae43c5ace1f653db91b5540c511db7e (diff)
downloadfaker-c4da9c0cda2b77114d0e8fe124cb094f51b304d7.tar.xz
faker-c4da9c0cda2b77114d0e8fe124cb094f51b304d7.zip
test: rewrite helpers tests (#499)
Diffstat (limited to 'src')
-rw-r--r--src/helpers.ts2
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();