mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +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 () => {
|
it('not match /addons/', async () => {
|
||||||
expect('/addons/'.match(routesRegexp.addons.regexp))
|
expect(Array.from('/addons/'.match(routesRegexp.addons.regexp)))
|
||||||
.toBe(null);
|
.toEqual(['/addons/', '', undefined, undefined]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('not match /addons//', async () => {
|
it('not match /addons//', async () => {
|
||||||
|
|
@ -292,8 +292,8 @@ describe('routesRegexp', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('not match /addons/1', async () => {
|
it('not match /addons/1', async () => {
|
||||||
expect('/addons/1'.match(routesRegexp.addons.regexp))
|
expect(Array.from('/addons/1'.match(routesRegexp.addons.regexp)))
|
||||||
.toBe(null);
|
.toEqual(['/addons/1', '1', undefined, undefined]);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('not match /addons/1/', async () => {
|
it('not match /addons/1/', async () => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue