mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
empty path added to board path tests
This commit is contained in:
parent
0eaaad35b1
commit
b902ff185e
1 changed files with 5 additions and 0 deletions
|
|
@ -14,6 +14,11 @@ describe('routesRegexp', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('board route regexp', () => {
|
describe('board route regexp', () => {
|
||||||
|
it('match empty path', async () => {
|
||||||
|
expect(Array.from(''.match(routesRegexp.board.regexp)))
|
||||||
|
.toEqual(['']);
|
||||||
|
});
|
||||||
|
|
||||||
it('match /', async () => {
|
it('match /', async () => {
|
||||||
expect(Array.from('/'.match(routesRegexp.board.regexp)))
|
expect(Array.from('/'.match(routesRegexp.board.regexp)))
|
||||||
.toEqual(['/']);
|
.toEqual(['/']);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue