diff --git a/tests/routesRegexp.spec.js b/tests/routesRegexp.spec.js index 46cf9b19a..1d4816516 100644 --- a/tests/routesRegexp.spec.js +++ b/tests/routesRegexp.spec.js @@ -14,6 +14,11 @@ describe('routesRegexp', () => { }); describe('board route regexp', () => { + it('match empty path', async () => { + expect(Array.from(''.match(routesRegexp.board.regexp))) + .toEqual(['']); + }); + it('match /', async () => { expect(Array.from('/'.match(routesRegexp.board.regexp))) .toEqual(['/']);