Skip to content

Commit

Permalink
empty path added to board path tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nklhtv committed Apr 7, 2020
1 parent 0eaaad3 commit b902ff1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/routesRegexp.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(['/']);
Expand Down

0 comments on commit b902ff1

Please sign in to comment.