Skip to content

Commit

Permalink
Wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerkretzmar committed Oct 6, 2023
1 parent 4670570 commit cbc85a8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/js/route.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1236,15 +1236,16 @@ describe('current()', () => {
test('can check the current route with Cyrillic characters', () => {
global.window.location.pathname = '/статистика';

same(route().current(), 'statistics');
assert(route().current('statistics'));
expect(route().current()).toBe('statistics');
expect(route().current('statistics')).toBe(true);
});

test('can check the current route with encoded Cyrillic characters', () => {
global.window.location.pathname = '/%D1%81%D1%82%D0%B0%D1%82%D0%B8%D1%81%D1%82%D0%B8%D0%BA%D0%B0';
global.window.location.pathname =
'/%D1%81%D1%82%D0%B0%D1%82%D0%B8%D1%81%D1%82%D0%B8%D0%BA%D0%B0';

same(route().current(), 'statistics');
assert(route().current('statistics'));
expect(route().current()).toBe('statistics');
expect(route().current('statistics')).toBe(true);
});

test('can ignore routes that don’t allow GET requests', () => {
Expand Down

0 comments on commit cbc85a8

Please sign in to comment.