diff options
| author | Shinigami <[email protected]> | 2022-02-06 11:14:18 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-02-06 11:14:18 +0100 |
| commit | e618a4b4c1392e7a60a7c1088ec70236c09d1f73 (patch) | |
| tree | 99ed987a432182d48562a6e214b54dd41b28d63a /src/name.ts | |
| parent | f8e24086b1aa0bc640553bcfc3e8bede9980d089 (diff) | |
| download | faker-e618a4b4c1392e7a60a7c1088ec70236c09d1f73.tar.xz faker-e618a4b4c1392e7a60a7c1088ec70236c09d1f73.zip | |
test: cover source instead of bundled code (#432)
Diffstat (limited to 'src/name.ts')
| -rw-r--r-- | src/name.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/name.ts b/src/name.ts index 4e813989..e62ba45e 100644 --- a/src/name.ts +++ b/src/name.ts @@ -176,8 +176,8 @@ export class Name { gender = this.faker.datatype.number(1); } - firstName ||= this.faker.name.firstName(gender); - lastName ||= this.faker.name.lastName(gender); + firstName = firstName || this.faker.name.firstName(gender); + lastName = lastName || this.faker.name.lastName(gender); switch (r) { case 0: |
