diff options
| author | ST-DDT <[email protected]> | 2023-11-23 20:03:32 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-23 20:03:32 +0100 |
| commit | 9b00fe9f7353df50c67966141a5f024ec9b95208 (patch) | |
| tree | 685ac4468b0e89855ef5f8fe45f299f2b3416080 /test | |
| parent | aff0f8022d30a132a6945efac44c22688b5fb5b8 (diff) | |
| download | faker-9b00fe9f7353df50c67966141a5f024ec9b95208.tar.xz faker-9b00fe9f7353df50c67966141a5f024ec9b95208.zip | |
infra(unicorn): prefer-code-point (#2509)
Diffstat (limited to 'test')
| -rw-r--r-- | test/modules/internet.spec.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/modules/internet.spec.ts b/test/modules/internet.spec.ts index be9aa025..e4c08b92 100644 --- a/test/modules/internet.spec.ts +++ b/test/modules/internet.spec.ts @@ -422,6 +422,14 @@ describe('internet', () => { const username = faker.internet.userName('大羽', '陳'); expect(username).includes('hlzp8d'); }); + + it('should provide a fallback special unicode characters', () => { + const username = faker.internet.userName({ + firstName: '🐼', + lastName: '❤️', + }); + expect(username).includes('2qt8'); + }); }); describe('displayName()', () => { |
