Skip to content

Commit

Permalink
test: add unicode username test
Browse files Browse the repository at this point in the history
  • Loading branch information
ST-DDT committed Nov 7, 2023
1 parent fea4616 commit 7ac949c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/modules/internet.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,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()', () => {
Expand Down

0 comments on commit 7ac949c

Please sign in to comment.