mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 17:15:48 +00:00
player route tests fixed
This commit is contained in:
parent
be144496e1
commit
eed4c0c98c
1 changed files with 4 additions and 4 deletions
|
|
@ -514,8 +514,8 @@ describe('routesRegexp', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('not match /player/', async () => {
|
it('not match /player/', async () => {
|
||||||
expect('/player/'.match(routesRegexp.player.regexp))
|
expect(Array.from('/player/'.match(routesRegexp.player.regexp)))
|
||||||
.toBe(null);
|
.toEqual(['/player/', '', undefined, undefined, undefined, undefined]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('not match /player//', async () => {
|
it('not match /player//', async () => {
|
||||||
|
|
@ -534,8 +534,8 @@ describe('routesRegexp', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('not match /player/1', async () => {
|
it('not match /player/1', async () => {
|
||||||
expect('/player/1'.match(routesRegexp.player.regexp))
|
expect(Array.from('/player/1'.match(routesRegexp.player.regexp)))
|
||||||
.toBe(null);
|
.toEqual(['/player/1', '1', undefined, undefined, undefined, undefined]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('not match /player/1/', async () => {
|
it('not match /player/1/', async () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue