From 2d93e6f14a5ba976f87b71202bc4e011e38ee823 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sat, 31 Dec 2022 12:22:38 +0100 Subject: chore: turn on padding-line-between-statements (#1691) --- src/modules/random/index.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/modules/random') diff --git a/src/modules/random/index.ts b/src/modules/random/index.ts index 1f4b499b..88f81c63 100644 --- a/src/modules/random/index.ts +++ b/src/modules/random/index.ts @@ -18,6 +18,7 @@ export class RandomModule { if (name === 'constructor' || typeof this[name] !== 'function') { continue; } + this[name] = this[name].bind(this); } } @@ -206,6 +207,7 @@ export class RandomModule { if (typeof options === 'number') { return this.faker.string.alpha(options); } + return this.faker.string.alpha({ length: options.count, casing: options.casing, -- cgit v1.2.3