Skip to content

Commit

Permalink
git commit —amend
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmelnikow committed Dec 5, 2018
1 parent 9e7aca4 commit 1d466db
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -857,40 +857,6 @@ var TESTS: Test[] = [
[{ test: 'foo' }, '/foo-bar']
]
],
[
'/:required/:optional?-ext',
null,
[
{
name: 'required',
prefix: '/',
delimiter: '/',
optional: false,
repeat: false,
partial: false,
pattern: '[^\\/]+?'
},
{
name: 'optional',
prefix: '/',
delimiter: '/',
optional: true,
repeat: false,
partial: true,
pattern: '[^\\/]+?'
},
'-ext'
],
[
['/foo-ext', ['/foo-ext', 'foo', undefined]],
['/foo/bar-ext', ['/foo/bar-ext', 'foo', 'bar']],
['/foo/-ext', null]
],
[
[{ required: 'foo' }, '/foo-ext'],
[{ required: 'foo', optional: 'baz' }, '/foo/baz-ext']
]
],
[
'/:test*-bar',
null,
Expand Down Expand Up @@ -2325,6 +2291,40 @@ var TESTS: Test[] = [
[{ postType: 'random' }, null]
]
],
[
'/:required/:optional?-ext',
null,
[
{
name: 'required',
prefix: '/',
delimiter: '/',
optional: false,
repeat: false,
partial: false,
pattern: '[^\\/]+?'
},
{
name: 'optional',
prefix: '/',
delimiter: '/',
optional: true,
repeat: false,
partial: true,
pattern: '[^\\/]+?'
},
'-ext'
],
[
['/foo-ext', ['/foo-ext', 'foo', undefined]],
['/foo/bar-ext', ['/foo/bar-ext', 'foo', 'bar']],
['/foo/-ext', null]
],
[
[{ required: 'foo' }, '/foo-ext'],
[{ required: 'foo', optional: 'baz' }, '/foo/baz-ext']
]
],

/**
* Unicode characters.
Expand Down

0 comments on commit 1d466db

Please sign in to comment.