diff options
| author | Leyla Jähnig <[email protected]> | 2022-06-16 21:53:21 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-06-16 21:53:21 +0200 |
| commit | aa031bbaadd24b54855d0ccd5a515b659b3c55fe (patch) | |
| tree | 259ff2ed589fb71c9f36d19b0183e2b6688bdf7f /src/modules/fake | |
| parent | 50d8af1f45b9e181c85b4218510046b73239e043 (diff) | |
| download | faker-aa031bbaadd24b54855d0ccd5a515b659b3c55fe.tar.xz faker-aa031bbaadd24b54855d0ccd5a515b659b3c55fe.zip | |
refactor(phone): rename phoneNumber to number (#1063)
Diffstat (limited to 'src/modules/fake')
| -rw-r--r-- | src/modules/fake/index.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/fake/index.ts b/src/modules/fake/index.ts index a94d8845..9dff1c8e 100644 --- a/src/modules/fake/index.ts +++ b/src/modules/fake/index.ts @@ -37,7 +37,7 @@ export class Fake { * and if that isn't possible, we will fall back to string: * * ```js - * const message = faker.fake(`You can call me at {{phone.phoneNumber(+!# !## #### #####!)}}.') + * const message = faker.fake(`You can call me at {{phone.number(+!# !## #### #####!)}}.') * ``` * * Currently it is not possible to set more than a single parameter. @@ -53,7 +53,7 @@ export class Fake { * faker.fake('{{name.lastName}}, {{name.firstName}} {{name.suffix}}') // 'Durgan, Noe MD' * faker.fake('This is static test.') // 'This is static test.' * faker.fake('Good Morning {{name.firstName}}!') // 'Good Morning Estelle!' - * faker.fake('You can call me at {{phone.phoneNumber(!## ### #####!)}}.') // 'You can call me at 202 555 973722.' + * faker.fake('You can call me at {{phone.number(!## ### #####!)}}.') // 'You can call me at 202 555 973722.' * faker.fake('I flipped the coin an got: {{helpers.arrayElement(["heads", "tails"])}}') // 'I flipped the coin an got: tails' */ fake(str: string): string { |
