Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

Commit

Permalink
Add parameterized path with trailing slash spec
Browse files Browse the repository at this point in the history
  • Loading branch information
bion authored and tptee committed Jan 26, 2018
1 parent 12da182 commit d7b0643
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/util/create-matcher.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ describe('createMatcher', () => {
}
});

expect(matchRoute('/home/messages/a-team/')).to.deep.equal({
route: '/home/messages/:team',
params: {
team: 'a-team'
},
result: {
name: 'team'
}
});

expect(matchRoute('/home/messages/a-team/the-wat-channel')).to.deep.equal({
route: '/home/messages/:team/:channel',
params: {
Expand Down

0 comments on commit d7b0643

Please sign in to comment.