diff options
| author | ST-DDT <[email protected]> | 2024-02-20 12:15:52 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-20 12:15:52 +0100 |
| commit | d89b348aa6465e5b6b6521b1dc4b77a89d58cc73 (patch) | |
| tree | 03c9953cb0a2608f697e097debd15409ac102070 | |
| parent | 25f2a0326b1103c8a47a06156d43d71d2d72b7fa (diff) | |
| download | faker-d89b348aa6465e5b6b6521b1dc4b77a89d58cc73.tar.xz faker-d89b348aa6465e5b6b6521b1dc4b77a89d58cc73.zip | |
infra(unicorn): no-useless-switch-case (#2508)
| -rw-r--r-- | .eslintrc.cjs | 1 | ||||
| -rw-r--r-- | docs/guide/upgrading_v9/2508.md | 20 | ||||
| -rw-r--r-- | src/modules/color/index.ts | 2 | ||||
| -rw-r--r-- | src/modules/internet/index.ts | 49 | ||||
| -rw-r--r-- | src/modules/location/index.ts | 1 | ||||
| -rw-r--r-- | src/modules/string/index.ts | 2 | ||||
| -rw-r--r-- | test/modules/__snapshots__/git.spec.ts.snap | 30 | ||||
| -rw-r--r-- | test/modules/__snapshots__/internet.spec.ts.snap | 190 |
8 files changed, 147 insertions, 148 deletions
diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 941397c9..e2a3731f 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -55,7 +55,6 @@ module.exports = defineConfig({ 'unicorn/no-array-callback-reference': 'off', 'unicorn/no-await-expression-member': 'off', 'unicorn/no-object-as-default-parameter': 'off', - 'unicorn/no-useless-switch-case': 'off', 'unicorn/numeric-separators-style': 'off', 'unicorn/prefer-export-from': 'off', 'unicorn/prefer-string-slice': 'off', diff --git a/docs/guide/upgrading_v9/2508.md b/docs/guide/upgrading_v9/2508.md new file mode 100644 index 00000000..28e6f8ed --- /dev/null +++ b/docs/guide/upgrading_v9/2508.md @@ -0,0 +1,20 @@ +# Some methods now return undefined in Javascript when unknown enumeration values are passed + +Some methods would previously fallback to a default value for an option when an unknown value was passed for a enum parameter. +Now, these methods will return undefined instead. +This only affects usage in Javascript, as in Typescript this usage would already throw a compile-time error. + +For example: + +```ts +faker.color.rgb({ format: 'unexpectedvalue' }); +// in Faker v8, is [ 110, 82, 190 ] like {format: "decimal"} +// in Faker v9, is undefined +``` + +This affects: + +- The `format` property of `faker.color.rgb()` must be one of `'binary' | 'css' | 'decimal' | 'hex'` if provided +- The `format` property of `faker.color.cmyk()`, `faker.color.hsl()`, `faker.color.hwb()`, `faker.color.lab()`, `faker.color.lch()` must be one of `'binary' | 'css' | 'decimal'` if provided +- The `variant` property of `faker.location.countryCode()` must be one of `alpha-2`, `alpha-3`, `numeric` if provided +- The `casing` property of `faker.string.alpha()` and `faker.string.alphanumeric()` must be one of `'upper' | 'lower' | 'mixed'` if provided diff --git a/src/modules/color/index.ts b/src/modules/color/index.ts index 67344597..712f9799 100644 --- a/src/modules/color/index.ts +++ b/src/modules/color/index.ts @@ -136,7 +136,6 @@ function toCSS( case 'lch': return `lch(${percentage(values[0])}% ${values[1]} ${values[2]})`; case 'rgb': - default: return `rgb(${values[0]}, ${values[1]}, ${values[2]})`; } } @@ -161,7 +160,6 @@ function toColorFormat( case 'binary': return toBinary(values); case 'decimal': - default: return values; } } diff --git a/src/modules/internet/index.ts b/src/modules/internet/index.ts index df860169..608a909c 100644 --- a/src/modules/internet/index.ts +++ b/src/modules/internet/index.ts @@ -639,24 +639,18 @@ export class InternetModule extends ModuleBase { lastName: hasLastName = legacyLastName, } = options; - let result: string; - const strategy = this.faker.number.int(hasLastName ? 1 : 2); const separator = this.faker.helpers.arrayElement(['.', '_']); - switch (strategy) { - case 0: - result = `${firstName}${separator}${lastName}${this.faker.number.int( - 99 - )}`; - break; - case 1: - result = `${firstName}${separator}${lastName}`; - break; - case 2: - default: - result = `${firstName}${this.faker.number.int(99)}`; - break; + const disambiguator = this.faker.number.int(99); + const strategies: Array<() => string> = [ + () => `${firstName}${separator}${lastName}${disambiguator}`, + () => `${firstName}${separator}${lastName}`, + ]; + if (!hasLastName) { + strategies.push(() => `${firstName}${disambiguator}`); } + let result = this.faker.helpers.arrayElement(strategies)(); + // There may still be non-ascii characters in the result. // First remove simple accents etc result = result @@ -826,24 +820,15 @@ export class InternetModule extends ModuleBase { lastName = legacyLastName ?? this.faker.person.lastName(), } = options; - let result: string; - switch (this.faker.number.int(2)) { - case 0: - result = `${firstName}${this.faker.number.int(99)}`; - break; - case 1: - result = - firstName + this.faker.helpers.arrayElement(['.', '_']) + lastName; - break; - case 2: - default: - result = `${firstName}${this.faker.helpers.arrayElement([ - '.', - '_', - ])}${lastName}${this.faker.number.int(99)}`; - break; - } + const separator = this.faker.helpers.arrayElement(['.', '_']); + const disambiguator = this.faker.number.int(99); + const strategies: Array<() => string> = [ + () => `${firstName}${disambiguator}`, + () => `${firstName}${separator}${lastName}`, + () => `${firstName}${separator}${lastName}${disambiguator}`, + ]; + let result = this.faker.helpers.arrayElement(strategies)(); result = result.toString().replaceAll("'", ''); result = result.replaceAll(' ', ''); return result; diff --git a/src/modules/location/index.ts b/src/modules/location/index.ts index fee40fd2..97120766 100644 --- a/src/modules/location/index.ts +++ b/src/modules/location/index.ts @@ -360,7 +360,6 @@ export class LocationModule extends ModuleBase { case 'alpha-3': return 'alpha3'; case 'alpha-2': - default: return 'alpha2'; } })(); diff --git a/src/modules/string/index.ts b/src/modules/string/index.ts index 8b3cbd26..cf469a2c 100644 --- a/src/modules/string/index.ts +++ b/src/modules/string/index.ts @@ -230,7 +230,6 @@ export class StringModule extends SimpleModuleBase { charsArray = [...LOWER_CHARS]; break; case 'mixed': - default: charsArray = [...LOWER_CHARS, ...UPPER_CHARS]; break; } @@ -321,7 +320,6 @@ export class StringModule extends SimpleModuleBase { charsArray.push(...LOWER_CHARS); break; case 'mixed': - default: charsArray.push(...LOWER_CHARS, ...UPPER_CHARS); break; } diff --git a/test/modules/__snapshots__/git.spec.ts.snap b/test/modules/__snapshots__/git.spec.ts.snap index 2294d6fc..395a9f71 100644 --- a/test/modules/__snapshots__/git.spec.ts.snap +++ b/test/modules/__snapshots__/git.spec.ts.snap @@ -10,7 +10,7 @@ exports[`git > 42 > commitDate > with only string refDate 1`] = `"Tue Dec 31 15: exports[`git > 42 > commitEntry > with only Date refDate 1`] = ` "commit be4abdd39321ad7d3fe01ffce404f4d6db0906bd -Author: Gregg.Beahan9 <[email protected]> +Author: Gregg.Beahan45 <[email protected]> Date: Tue Dec 31 00:24:08 2019 +0300 connect auxiliary bus @@ -19,7 +19,7 @@ Date: Tue Dec 31 00:24:08 2019 +0300 exports[`git > 42 > commitEntry > with only number refDate 1`] = ` "commit be4abdd39321ad7d3fe01ffce404f4d6db0906bd -Author: Gregg.Beahan9 <[email protected]> +Author: Gregg.Beahan45 <[email protected]> Date: Tue Dec 31 00:24:08 2019 +0300 connect auxiliary bus @@ -28,7 +28,7 @@ Date: Tue Dec 31 00:24:08 2019 +0300 exports[`git > 42 > commitEntry > with only string refDate 1`] = ` "commit be4abdd39321ad7d3fe01ffce404f4d6db0906bd -Author: Gregg.Beahan9 <[email protected]> +Author: Gregg.Beahan45 <[email protected]> Date: Tue Dec 31 00:24:08 2019 +0300 connect auxiliary bus @@ -53,28 +53,28 @@ exports[`git > 1211 > commitDate > with only string refDate 1`] = `"Tue Dec 31 0 exports[`git > 1211 > commitEntry > with only Date refDate 1`] = ` "commit adb42f0e3f4a973fab0aeefce96dfcf49cd438df -Author: Imani.Anderson <[email protected]> -Date: Tue Dec 31 18:36:59 2019 +0200 +Author: Imani Anderson <[email protected]> +Date: Tue Dec 31 16:48:46 2019 -0700 - copy digital feed + synthesize cross-platform firewall " `; exports[`git > 1211 > commitEntry > with only number refDate 1`] = ` "commit adb42f0e3f4a973fab0aeefce96dfcf49cd438df -Author: Imani.Anderson <[email protected]> -Date: Tue Dec 31 18:36:59 2019 +0200 +Author: Imani Anderson <[email protected]> +Date: Tue Dec 31 16:48:46 2019 -0700 - copy digital feed + synthesize cross-platform firewall " `; exports[`git > 1211 > commitEntry > with only string refDate 1`] = ` "commit adb42f0e3f4a973fab0aeefce96dfcf49cd438df -Author: Imani.Anderson <[email protected]> -Date: Tue Dec 31 18:36:59 2019 +0200 +Author: Imani Anderson <[email protected]> +Date: Tue Dec 31 16:48:46 2019 -0700 - copy digital feed + synthesize cross-platform firewall " `; @@ -96,7 +96,7 @@ exports[`git > 1337 > commitDate > with only string refDate 1`] = `"Tue Dec 31 1 exports[`git > 1337 > commitEntry > with only Date refDate 1`] = ` "commit c346ba075bd57f5a62b82d72af39cbbb07a98cba -Author: Miss Friedrich Krajcik <[email protected]> +Author: Miss Friedrich Krajcik <[email protected]> Date: Tue Dec 31 02:27:22 2019 +0100 reboot neural pixel @@ -105,7 +105,7 @@ Date: Tue Dec 31 02:27:22 2019 +0100 exports[`git > 1337 > commitEntry > with only number refDate 1`] = ` "commit c346ba075bd57f5a62b82d72af39cbbb07a98cba -Author: Miss Friedrich Krajcik <[email protected]> +Author: Miss Friedrich Krajcik <[email protected]> Date: Tue Dec 31 02:27:22 2019 +0100 reboot neural pixel @@ -114,7 +114,7 @@ Date: Tue Dec 31 02:27:22 2019 +0100 exports[`git > 1337 > commitEntry > with only string refDate 1`] = ` "commit c346ba075bd57f5a62b82d72af39cbbb07a98cba -Author: Miss Friedrich Krajcik <[email protected]> +Author: Miss Friedrich Krajcik <[email protected]> Date: Tue Dec 31 02:27:22 2019 +0100 reboot neural pixel diff --git a/test/modules/__snapshots__/internet.spec.ts.snap b/test/modules/__snapshots__/internet.spec.ts.snap index 488dd6a8..de824bd4 100644 --- a/test/modules/__snapshots__/internet.spec.ts.snap +++ b/test/modules/__snapshots__/internet.spec.ts.snap @@ -14,23 +14,23 @@ exports[`internet > 42 > color > with legacy color base 1`] = `"#6298ac"`; exports[`internet > 42 > color > with redBase option 1`] = `"#62667a"`; -exports[`internet > 42 > displayName > noArgs 1`] = `"Garnet73"`; +exports[`internet > 42 > displayName > noArgs 1`] = `"Garnet.Wiegand73"`; -exports[`internet > 42 > displayName > with Chinese names 1`] = `"大羽_陳"`; +exports[`internet > 42 > displayName > with Chinese names 1`] = `"大羽.陳79"`; -exports[`internet > 42 > displayName > with Cyrillic names 1`] = `"Фёдор_Достоевский"`; +exports[`internet > 42 > displayName > with Cyrillic names 1`] = `"Фёдор.Достоевский79"`; -exports[`internet > 42 > displayName > with Latin names 1`] = `"Jane_Doe"`; +exports[`internet > 42 > displayName > with Latin names 1`] = `"Jane.Doe79"`; -exports[`internet > 42 > displayName > with accented names 1`] = `"Hélene_Müller"`; +exports[`internet > 42 > displayName > with accented names 1`] = `"Hélene.Müller79"`; -exports[`internet > 42 > displayName > with all option 1`] = `"Jane_Doe"`; +exports[`internet > 42 > displayName > with all option 1`] = `"Jane.Doe79"`; -exports[`internet > 42 > displayName > with firstName option 1`] = `"Jane.Schinner73"`; +exports[`internet > 42 > displayName > with firstName option 1`] = `"Jane_Schinner18"`; -exports[`internet > 42 > displayName > with lastName option 1`] = `"Garnet_Doe18"`; +exports[`internet > 42 > displayName > with lastName option 1`] = `"Garnet95"`; -exports[`internet > 42 > displayName > with legacy names 1`] = `"Jane_Doe"`; +exports[`internet > 42 > displayName > with legacy names 1`] = `"Jane.Doe79"`; exports[`internet > 42 > domainName 1`] = `"hasty-sherbet.org"`; @@ -38,41 +38,41 @@ exports[`internet > 42 > domainSuffix 1`] = `"info"`; exports[`internet > 42 > domainWord 1`] = `"hasty-sherbet"`; -exports[`internet > 42 > email > noArgs 1`] = `"[email protected]"`; +exports[`internet > 42 > email > noArgs 1`] = `"[email protected]"`; -exports[`internet > 42 > email > with all options 1`] = `"[email protected]"`; +exports[`internet > 42 > email > with all options 1`] = `"[email protected]"`; -exports[`internet > 42 > email > with allowSpecialCharacters option 1`] = `"[email protected]"`; +exports[`internet > 42 > email > with allowSpecialCharacters option 1`] = `"[email protected]"`; -exports[`internet > 42 > email > with firstName option 1`] = `"[email protected]"`; +exports[`internet > 42 > email > with firstName option 1`] = `"[email protected]"`; -exports[`internet > 42 > email > with lastName option 1`] = `"[email protected]"`; +exports[`internet > 42 > email > with lastName option 1`] = `"[email protected]"`; -exports[`internet > 42 > email > with legacy names 1`] = `"[email protected]"`; +exports[`internet > 42 > email > with legacy names 1`] = `"[email protected]"`; -exports[`internet > 42 > email > with legacy names and provider 1`] = `"[email protected]"`; +exports[`internet > 42 > email > with legacy names and provider 1`] = `"[email protected]"`; -exports[`internet > 42 > email > with legacy provider 1`] = `"[email protected]"`; +exports[`internet > 42 > email > with legacy provider 1`] = `"[email protected]"`; -exports[`internet > 42 > email > with provider option 1`] = `"[email protected]"`; +exports[`internet > 42 > email > with provider option 1`] = `"[email protected]"`; exports[`internet > 42 > emoji > noArgs 1`] = `"🕸️"`; exports[`internet > 42 > emoji > with options 1`] = `"🦔"`; -exports[`internet > 42 > exampleEmail > noArgs 1`] = `"[email protected]"`; +exports[`internet > 42 > exampleEmail > noArgs 1`] = `"[email protected]"`; -exports[`internet > 42 > exampleEmail > with all options 1`] = `"[email protected]"`; +exports[`internet > 42 > exampleEmail > with all options 1`] = `"[email protected]"`; -exports[`internet > 42 > exampleEmail > with allowSpecialCharacters option 1`] = `"[email protected]"`; +exports[`internet > 42 > exampleEmail > with allowSpecialCharacters option 1`] = `"[email protected]"`; -exports[`internet > 42 > exampleEmail > with firstName option 1`] = `"[email protected]"`; +exports[`internet > 42 > exampleEmail > with firstName option 1`] = `"[email protected]"`; -exports[`internet > 42 > exampleEmail > with lastName option 1`] = `"[email protected]"`; +exports[`internet > 42 > exampleEmail > with lastName option 1`] = `"[email protected]"`; -exports[`internet > 42 > exampleEmail > with legacy names 1`] = `"[email protected]"`; +exports[`internet > 42 > exampleEmail > with legacy names 1`] = `"[email protected]"`; -exports[`internet > 42 > exampleEmail > with legacy names and options 1`] = `"[email protected]"`; +exports[`internet > 42 > exampleEmail > with legacy names and options 1`] = `"[email protected]"`; exports[`internet > 42 > httpMethod 1`] = `"POST"`; @@ -124,23 +124,23 @@ exports[`internet > 42 > url > without slash appended and with http protocol 1`] exports[`internet > 42 > userAgent 1`] = `"Mozilla/5.0 (X11; Linux x86_64; rv:15.1) Gecko/20100101 Firefox/15.1.7"`; -exports[`internet > 42 > userName > noArgs 1`] = `"Garnet_Wiegand77"`; +exports[`internet > 42 > userName > noArgs 1`] = `"Garnet73"`; -exports[`internet > 42 > userName > with Chinese names 1`] = `"hlzp8d_tpv95"`; +exports[`internet > 42 > userName > with Chinese names 1`] = `"hlzp8d.tpv"`; -exports[`internet > 42 > userName > with Cyrillic names 1`] = `"Fedor_Dostoevskii95"`; +exports[`internet > 42 > userName > with Cyrillic names 1`] = `"Fedor.Dostoevskii"`; -exports[`internet > 42 > userName > with Latin names 1`] = `"Jane_Doe95"`; +exports[`internet > 42 > userName > with Latin names 1`] = `"Jane.Doe"`; -exports[`internet > 42 > userName > with accented names 1`] = `"Helene_Muller95"`; +exports[`internet > 42 > userName > with accented names 1`] = `"Helene.Muller"`; -exports[`internet > 42 > userName > with all option 1`] = `"Jane_Doe95"`; +exports[`internet > 42 > userName > with all option 1`] = `"Jane.Doe"`; -exports[`internet > 42 > userName > with firstName option 1`] = `"Jane73"`; +exports[`internet > 42 > userName > with firstName option 1`] = `"Jane18"`; -exports[`internet > 42 > userName > with lastName option 1`] = `"Garnet_Doe"`; +exports[`internet > 42 > userName > with lastName option 1`] = `"Garnet_Doe95"`; -exports[`internet > 42 > userName > with legacy names 1`] = `"Jane_Doe95"`; +exports[`internet > 42 > userName > with legacy names 1`] = `"Jane.Doe"`; exports[`internet > 1211 > avatar 1`] = `"https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/1160.jpg"`; @@ -156,23 +156,23 @@ exports[`internet > 1211 > color > with legacy color base 1`] = `"#a96ca4"`; exports[`internet > 1211 > color > with redBase option 1`] = `"#a93a72"`; -exports[`internet > 1211 > displayName > noArgs 1`] = `"Tito.Trantow12"`; +exports[`internet > 1211 > displayName > noArgs 1`] = `"Tito22"`; -exports[`internet > 1211 > displayName > with Chinese names 1`] = `"大羽.陳89"`; +exports[`internet > 1211 > displayName > with Chinese names 1`] = `"大羽_陳45"`; -exports[`internet > 1211 > displayName > with Cyrillic names 1`] = `"Фёдор.Достоевский89"`; +exports[`internet > 1211 > displayName > with Cyrillic names 1`] = `"Фёдор_Достоевский45"`; -exports[`internet > 1211 > displayName > with Latin names 1`] = `"Jane.Doe89"`; +exports[`internet > 1211 > displayName > with Latin names 1`] = `"Jane_Doe45"`; -exports[`internet > 1211 > displayName > with accented names 1`] = `"Hélene.Müller89"`; +exports[`internet > 1211 > displayName > with accented names 1`] = `"Hélene_Müller45"`; -exports[`internet > 1211 > displayName > with all option 1`] = `"Jane.Doe89"`; +exports[`internet > 1211 > displayName > with all option 1`] = `"Jane_Doe45"`; -exports[`internet > 1211 > displayName > with firstName option 1`] = `"Jane_Koelpin22"`; +exports[`internet > 1211 > displayName > with firstName option 1`] = `"Jane77"`; -exports[`internet > 1211 > displayName > with lastName option 1`] = `"Tito_Doe"`; +exports[`internet > 1211 > displayName > with lastName option 1`] = `"Tito.Doe89"`; -exports[`internet > 1211 > displayName > with legacy names 1`] = `"Jane.Doe89"`; +exports[`internet > 1211 > displayName > with legacy names 1`] = `"Jane_Doe45"`; exports[`internet > 1211 > domainName 1`] = `"vicious-infrastructure.org"`; @@ -180,41 +180,41 @@ exports[`internet > 1211 > domainSuffix 1`] = `"org"`; exports[`internet > 1211 > domainWord 1`] = `"vicious-infrastructure"`; -exports[`internet > 1211 > email > noArgs 1`] = `"[email protected]"`; +exports[`internet > 1211 > email > noArgs 1`] = `"[email protected]"`; -exports[`internet > 1211 > email > with all options 1`] = `"[email protected]"`; +exports[`internet > 1211 > email > with all options 1`] = `"[email protected]"`; -exports[`internet > 1211 > email > with allowSpecialCharacters option 1`] = `"Jadyn^[email protected]"`; +exports[`internet > 1211 > email > with allowSpecialCharacters option 1`] = `"[email protected]"`; -exports[`internet > 1211 > email > with firstName option 1`] = `"[email protected]"`; +exports[`internet > 1211 > email > with firstName option 1`] = `"[email protected]"`; -exports[`internet > 1211 > email > with lastName option 1`] = `"[email protected]"`; +exports[`internet > 1211 > email > with lastName option 1`] = `"[email protected]"`; -exports[`internet > 1211 > email > with legacy names 1`] = `"[email protected]"`; +exports[`internet > 1211 > email > with legacy names 1`] = `"[email protected]"`; -exports[`internet > 1211 > email > with legacy names and provider 1`] = `"[email protected]"`; +exports[`internet > 1211 > email > with legacy names and provider 1`] = `"[email protected]"`; -exports[`internet > 1211 > email > with legacy provider 1`] = `"[email protected]"`; +exports[`internet > 1211 > email > with legacy provider 1`] = `"[email protected]"`; -exports[`internet > 1211 > email > with provider option 1`] = `"[email protected]"`; +exports[`internet > 1211 > email > with provider option 1`] = `"[email protected]"`; exports[`internet > 1211 > emoji > noArgs 1`] = `"🇮🇸"`; exports[`internet > 1211 > emoji > with options 1`] = `"🌲"`; -exports[`internet > 1211 > exampleEmail > noArgs 1`] = `"[email protected]"`; +exports[`internet > 1211 > exampleEmail > noArgs 1`] = `"[email protected]"`; -exports[`internet > 1211 > exampleEmail > with all options 1`] = `"[email protected]"`; +exports[`internet > 1211 > exampleEmail > with all options 1`] = `"Jane#[email protected]"`; -exports[`internet > 1211 > exampleEmail > with allowSpecialCharacters option 1`] = `"Jadyn^[email protected]"`; +exports[`internet > 1211 > exampleEmail > with allowSpecialCharacters option 1`] = `"[email protected]"`; -exports[`internet > 1211 > exampleEmail > with firstName option 1`] = `"[email protected]"`; +exports[`internet > 1211 > exampleEmail > with firstName option 1`] = `"[email protected]"`; -exports[`internet > 1211 > exampleEmail > with lastName option 1`] = `"[email protected]"`; +exports[`internet > 1211 > exampleEmail > with lastName option 1`] = `"[email protected]"`; -exports[`internet > 1211 > exampleEmail > with legacy names 1`] = `"[email protected]"`; +exports[`internet > 1211 > exampleEmail > with legacy names 1`] = `"[email protected]"`; -exports[`internet > 1211 > exampleEmail > with legacy names and options 1`] = `"[email protected]"`; +exports[`internet > 1211 > exampleEmail > with legacy names and options 1`] = `"Jane#[email protected]"`; exports[`internet > 1211 > httpMethod 1`] = `"PATCH"`; @@ -266,23 +266,23 @@ exports[`internet > 1211 > url > without slash appended and with http protocol 1 exports[`internet > 1211 > userAgent 1`] = `"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.3; Trident/4.0)"`; -exports[`internet > 1211 > userName > noArgs 1`] = `"Tito12"`; +exports[`internet > 1211 > userName > noArgs 1`] = `"Tito_Trantow22"`; -exports[`internet > 1211 > userName > with Chinese names 1`] = `"hlzp8d.tpv"`; +exports[`internet > 1211 > userName > with Chinese names 1`] = `"hlzp8d_tpv"`; -exports[`internet > 1211 > userName > with Cyrillic names 1`] = `"Fedor.Dostoevskii"`; +exports[`internet > 1211 > userName > with Cyrillic names 1`] = `"Fedor_Dostoevskii"`; -exports[`internet > 1211 > userName > with Latin names 1`] = `"Jane.Doe"`; +exports[`internet > 1211 > userName > with Latin names 1`] = `"Jane_Doe"`; -exports[`internet > 1211 > userName > with accented names 1`] = `"Helene.Muller"`; +exports[`internet > 1211 > userName > with accented names 1`] = `"Helene_Muller"`; -exports[`internet > 1211 > userName > with all option 1`] = `"Jane.Doe"`; +exports[`internet > 1211 > userName > with all option 1`] = `"Jane_Doe"`; -exports[`internet > 1211 > userName > with firstName option 1`] = `"Jane22"`; +exports[`internet > 1211 > userName > with firstName option 1`] = `"Jane_Koelpin77"`; -exports[`internet > 1211 > userName > with lastName option 1`] = `"Tito_Doe77"`; +exports[`internet > 1211 > userName > with lastName option 1`] = `"Tito.Doe"`; -exports[`internet > 1211 > userName > with legacy names 1`] = `"Jane.Doe"`; +exports[`internet > 1211 > userName > with legacy names 1`] = `"Jane_Doe"`; exports[`internet > 1337 > avatar 1`] = `"https://cloudflare-ipfs.com/ipfs/Qmd3W5DuhgHirLHGVixi6V76LhCkZUz6pnFt5AJBiyvHye/avatar/327.jpg"`; @@ -298,7 +298,7 @@ exports[`internet > 1337 > color > with legacy color base 1`] = `"#537a46"`; exports[`internet > 1337 > color > with redBase option 1`] = `"#534814"`; -exports[`internet > 1337 > displayName > noArgs 1`] = `"Devyn27"`; +exports[`internet > 1337 > displayName > noArgs 1`] = `"Devyn.Cronin"`; exports[`internet > 1337 > displayName > with Chinese names 1`] = `"大羽56"`; @@ -312,7 +312,7 @@ exports[`internet > 1337 > displayName > with all option 1`] = `"Jane56"`; exports[`internet > 1337 > displayName > with firstName option 1`] = `"Jane21"`; -exports[`internet > 1337 > displayName > with lastName option 1`] = `"Devyn.Doe"`; +exports[`internet > 1337 > displayName > with lastName option 1`] = `"Devyn15"`; exports[`internet > 1337 > displayName > with legacy names 1`] = `"Jane56"`; @@ -322,41 +322,41 @@ exports[`internet > 1337 > domainSuffix 1`] = `"biz"`; exports[`internet > 1337 > domainWord 1`] = `"fair-mile"`; -exports[`internet > 1337 > email > noArgs 1`] = `"[email protected]"`; +exports[`internet > 1337 > email > noArgs 1`] = `"[email protected]"`; -exports[`internet > 1337 > email > with all options 1`] = `"[email protected]"`; +exports[`internet > 1337 > email > with all options 1`] = `"Jane&[email protected]"`; -exports[`internet > 1337 > email > with allowSpecialCharacters option 1`] = `"[email protected]"`; +exports[`internet > 1337 > email > with allowSpecialCharacters option 1`] = `"Kellen'[email protected]"`; -exports[`internet > 1337 > email > with firstName option 1`] = `"[email protected]"`; +exports[`internet > 1337 > email > with firstName option 1`] = `"[email protected]"`; -exports[`internet > 1337 > email > with lastName option 1`] = `"[email protected]"`; +exports[`internet > 1337 > email > with lastName option 1`] = `"[email protected]"`; -exports[`internet > 1337 > email > with legacy names 1`] = `"[email protected]"`; +exports[`internet > 1337 > email > with legacy names 1`] = `"[email protected]"`; -exports[`internet > 1337 > email > with legacy names and provider 1`] = `"[email protected]"`; +exports[`internet > 1337 > email > with legacy names and provider 1`] = `"[email protected]"`; -exports[`internet > 1337 > email > with legacy provider 1`] = `"[email protected]"`; +exports[`internet > 1337 > email > with legacy provider 1`] = `"[email protected]"`; -exports[`internet > 1337 > email > with provider option 1`] = `"[email protected]"`; +exports[`internet > 1337 > email > with provider option 1`] = `"[email protected]"`; exports[`internet > 1337 > emoji > noArgs 1`] = `"💇🏼♀️"`; exports[`internet > 1337 > emoji > with options 1`] = `"🐪"`; -exports[`internet > 1337 > exampleEmail > noArgs 1`] = `"[email protected]"`; +exports[`internet > 1337 > exampleEmail > noArgs 1`] = `"[email protected]"`; -exports[`internet > 1337 > exampleEmail > with all options 1`] = `"Jane&[email protected]"`; +exports[`internet > 1337 > exampleEmail > with all options 1`] = `"[email protected]"`; -exports[`internet > 1337 > exampleEmail > with allowSpecialCharacters option 1`] = `"[email protected]"`; +exports[`internet > 1337 > exampleEmail > with allowSpecialCharacters option 1`] = `"Kellen'[email protected]"`; -exports[`internet > 1337 > exampleEmail > with firstName option 1`] = `"[email protected]"`; +exports[`internet > 1337 > exampleEmail > with firstName option 1`] = `"[email protected]"`; -exports[`internet > 1337 > exampleEmail > with lastName option 1`] = `"[email protected]"`; +exports[`internet > 1337 > exampleEmail > with lastName option 1`] = `"[email protected]"`; -exports[`internet > 1337 > exampleEmail > with legacy names 1`] = `"[email protected]"`; +exports[`internet > 1337 > exampleEmail > with legacy names 1`] = `"[email protected]"`; -exports[`internet > 1337 > exampleEmail > with legacy names and options 1`] = `"Jane&[email protected]"`; +exports[`internet > 1337 > exampleEmail > with legacy names and options 1`] = `"[email protected]"`; exports[`internet > 1337 > httpMethod 1`] = `"POST"`; @@ -408,20 +408,20 @@ exports[`internet > 1337 > url > without slash appended and with http protocol 1 exports[`internet > 1337 > userAgent 1`] = `"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7.0; rv:6.2) Gecko/20100101 Firefox/6.2.2"`; -exports[`internet > 1337 > userName > noArgs 1`] = `"Devyn.Cronin54"`; +exports[`internet > 1337 > userName > noArgs 1`] = `"Devyn.Cronin"`; -exports[`internet > 1337 > userName > with Chinese names 1`] = `"hlzp8d_tpv15"`; +exports[`internet > 1337 > userName > with Chinese names 1`] = `"hlzp8d.tpv56"`; -exports[`internet > 1337 > userName > with Cyrillic names 1`] = `"Fedor_Dostoevskii15"`; +exports[`internet > 1337 > userName > with Cyrillic names 1`] = `"Fedor.Dostoevskii56"`; -exports[`internet > 1337 > userName > with Latin names 1`] = `"Jane_Doe15"`; +exports[`internet > 1337 > userName > with Latin names 1`] = `"Jane.Doe56"`; -exports[`internet > 1337 > userName > with accented names 1`] = `"Helene_Muller15"`; +exports[`internet > 1337 > userName > with accented names 1`] = `"Helene.Muller56"`; -exports[`internet > 1337 > userName > with all option 1`] = `"Jane_Doe15"`; +exports[`internet > 1337 > userName > with all option 1`] = `"Jane.Doe56"`; -exports[`internet > 1337 > userName > with firstName option 1`] = `"Jane.MacGyver27"`; +exports[`internet > 1337 > userName > with firstName option 1`] = `"Jane.MacGyver21"`; -exports[`internet > 1337 > userName > with lastName option 1`] = `"Devyn.Doe"`; +exports[`internet > 1337 > userName > with lastName option 1`] = `"Devyn_Doe15"`; -exports[`internet > 1337 > userName > with legacy names 1`] = `"Jane_Doe15"`; +exports[`internet > 1337 > userName > with legacy names 1`] = `"Jane.Doe56"`; |
