From aa031bbaadd24b54855d0ccd5a515b659b3c55fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leyla=20J=C3=A4hnig?= Date: Thu, 16 Jun 2022 21:53:21 +0200 Subject: refactor(phone): rename phoneNumber to number (#1063) --- src/modules/fake/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/fake') 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 { -- cgit v1.2.3