FEATURE: improved the display of player names, with the font-family 'Press start 2P' and gray outlines

This commit is contained in:
kharhamel 2021-05-26 17:07:07 +02:00
parent 474323b95f
commit 12da6ddd6c
14 changed files with 63 additions and 14 deletions

View file

@ -19,8 +19,14 @@ describe("isUserNameValid()", () => {
it("should not validate spaces", () => {
expect(isUserNameValid(' ')).toBe(false);
});
it("should not validate special characters", () => {
expect(isUserNameValid('a&-')).toBe(false);
it("should validate special characters", () => {
expect(isUserNameValid('%&-')).toBe(true);
});
it("should validate accents", () => {
expect(isUserNameValid('éàëè')).toBe(true);
});
it("should validate chinese characters", () => {
expect(isUserNameValid('中文鍵盤')).toBe(true);
});
});