Skip to content

Commit

Permalink
Add test case from #172
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Dec 1, 2018
1 parent 28ee04d commit c36498d
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1747,7 +1747,7 @@ var TESTS: Test[] = [
],
[
'/route\\(\\\\(\\d+\\\\)\\)',
null,
null,
[
'/route(\\',
{
Expand All @@ -1766,6 +1766,26 @@ var TESTS: Test[] = [
],
[]
],
[
'/(login)?',
null,
[
{
name: 0,
prefix: '/',
delimiter: '/',
optional: true,
repeat: false,
partial: false,
pattern: 'login'
}
],
[
['/', ['/', undefined]],
['/login', ['/login', 'login']]
],
[]
],

/**
* Regexps.
Expand Down

0 comments on commit c36498d

Please sign in to comment.