tests fixed

This commit is contained in:
nklhrstv 2020-10-02 13:01:47 +03:00
parent 8d058035fc
commit cde55c96e3

View file

@ -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 () => {