diff options
Diffstat (limited to 'test/modules')
| -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()', () => { |
