mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-01-11 22:40:31 +00:00
tests fixed
This commit is contained in:
parent
8d058035fc
commit
cde55c96e3
1 changed files with 4 additions and 4 deletions
|
|
@ -277,8 +277,8 @@ describe('routesRegexp', () => {
|
|||
});
|
||||
|
||||
it('not match /addons/', async () => {
|
||||
expect('/addons/'.match(routesRegexp.addons.regexp))
|
||||
.toBe(null);
|
||||
expect(Array.from('/addons/'.match(routesRegexp.addons.regexp)))
|
||||
.toEqual(['/addons/', '', undefined, undefined]);
|
||||
});
|
||||
|
||||
it('not match /addons//', async () => {
|
||||
|
|
@ -292,8 +292,8 @@ describe('routesRegexp', () => {
|
|||
});
|
||||
|
||||
it('not match /addons/1', async () => {
|
||||
expect('/addons/1'.match(routesRegexp.addons.regexp))
|
||||
.toBe(null);
|
||||
expect(Array.from('/addons/1'.match(routesRegexp.addons.regexp)))
|
||||
.toEqual(['/addons/1', '1', undefined, undefined]);
|
||||
});
|
||||
|
||||
it('not match /addons/1/', async () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue