aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorST-DDT <[email protected]>2023-11-23 20:03:32 +0100
committerGitHub <[email protected]>2023-11-23 20:03:32 +0100
commit9b00fe9f7353df50c67966141a5f024ec9b95208 (patch)
tree685ac4468b0e89855ef5f8fe45f299f2b3416080 /test
parentaff0f8022d30a132a6945efac44c22688b5fb5b8 (diff)
downloadfaker-9b00fe9f7353df50c67966141a5f024ec9b95208.tar.xz
faker-9b00fe9f7353df50c67966141a5f024ec9b95208.zip
infra(unicorn): prefer-code-point (#2509)
Diffstat (limited to 'test')
-rw-r--r--test/modules/internet.spec.ts8
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()', () => {