diff options
| author | Leyla Jähnig <[email protected]> | 2022-07-30 12:57:05 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-07-30 12:57:05 +0200 |
| commit | fc4815520b4c6aaf35a89fe41ff4a94b3346379c (patch) | |
| tree | 44e170fa4c26eb6f81bcaa215640339435d9c5f5 /src/modules/address | |
| parent | 09df73aa1ab97dfec4ed3a4dfdd8280f7b094a87 (diff) | |
| download | faker-fc4815520b4c6aaf35a89fe41ff4a94b3346379c.tar.xz faker-fc4815520b4c6aaf35a89fe41ff4a94b3346379c.zip | |
refactor(fake): move to `helpers` (#1161)
Co-authored-by: Eric Cheng <[email protected]>
Diffstat (limited to 'src/modules/address')
| -rw-r--r-- | src/modules/address/index.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/address/index.ts b/src/modules/address/index.ts index 7c55bb51..4c2469e1 100644 --- a/src/modules/address/index.ts +++ b/src/modules/address/index.ts @@ -86,7 +86,7 @@ export class Address { format = this.faker.datatype.number(formats.length - 1); } - return this.faker.fake(formats[format]); + return this.faker.helpers.fake(formats[format]); } /** @@ -171,7 +171,7 @@ export class Address { const format = this.faker.helpers.arrayElement( this.faker.definitions.address.street ); - return this.faker.fake(format); + return this.faker.helpers.fake(format); } /** @@ -212,7 +212,7 @@ export class Address { const formats = this.faker.definitions.address.street_address; const format = formats[useFullAddress ? 'full' : 'normal']; - return this.faker.fake(format); + return this.faker.helpers.fake(format); } /** |
