empty path added to board path tests

This commit is contained in:
nklhrstv 2020-04-07 17:56:27 +03:00
parent 0eaaad35b1
commit b902ff185e

View file

@ -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(['/']);