player route tests fixed

This commit is contained in:
nklhrstv 2020-02-01 11:27:24 +02:00
parent be144496e1
commit eed4c0c98c

View file

@ -514,8 +514,8 @@ describe('routesRegexp', () => {
});
it('not match /player/', async () => {
expect('/player/'.match(routesRegexp.player.regexp))
.toBe(null);
expect(Array.from('/player/'.match(routesRegexp.player.regexp)))
.toEqual(['/player/', '', undefined, undefined, undefined, undefined]);
});
it('not match /player//', async () => {
@ -534,8 +534,8 @@ describe('routesRegexp', () => {
});
it('not match /player/1', async () => {
expect('/player/1'.match(routesRegexp.player.regexp))
.toBe(null);
expect(Array.from('/player/1'.match(routesRegexp.player.regexp)))
.toEqual(['/player/1', '1', undefined, undefined, undefined, undefined]);
});
it('not match /player/1/', async () => {