diff --git a/tests/routesRegexp.spec.js b/tests/routesRegexp.spec.js index d7cb63034..001b83f6b 100644 --- a/tests/routesRegexp.spec.js +++ b/tests/routesRegexp.spec.js @@ -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 () => {