Skip to content

Commit

Permalink
added 2 tests for ROOM_NAME validation
Browse files Browse the repository at this point in the history
  • Loading branch information
jayeshmangwani committed Oct 10, 2023
1 parent 6ad732a commit f1e62df
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/unit/ValidationUtilsTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,18 @@ describe('ValidationUtils', () => {
test('room name with spanish Accented letters and dashes', () => {
expect(ValidationUtils.isValidRoomName('#sala-de-opinión')).toBe(true);
});

test('room name with division sign (÷)', () => {
expect(ValidationUtils.isValidRoomName('#room-name-with-÷-sign')).toBe(false);
});

test('room name with Greek alphabet and Cyrillic alphabets', () => {
expect(ValidationUtils.isValidRoomName('#σοβαρός-серьезный')).toBe(true);
});

});


describe('isValidWebsite', () => {
test('Valid URLs with https protocol', () => {
expect(ValidationUtils.isValidWebsite('https://www.expensify.com')).toBe(true);
Expand Down

0 comments on commit f1e62df

Please sign in to comment.