Skip to content

Commit

Permalink
Add additional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed May 18, 2016
1 parent 71d3232 commit 1548872
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions test.ts
Expand Up @@ -874,10 +874,18 @@ var TESTS: Test[] = [
],
[
['/abc', ['/abc', 'abc']],
['/abc/abc', ['/abc/abc', 'abc/abc']]
],
[
[{ path: 'abc' }, '/abc']
['/abc/abc', ['/abc/abc', 'abc/abc']],
['/xyz/xyz', ['/xyz/xyz', 'xyz/xyz']],
['/abc/xyz', ['/abc/xyz', 'abc/xyz']],
['/abc/xyz/abc/xyz', ['/abc/xyz/abc/xyz', 'abc/xyz/abc/xyz']],
['/xyzxyz', null]
],
[
[{ path: 'abc' }, '/abc'],
[{ path: ['abc', 'xyz'] }, '/abc/xyz'],
[{ path: ['xyz', 'abc', 'xyz'] }, '/xyz/abc/xyz'],
[{ path: 'abc123' }, null],
[{ path: 'abcxyz' }, null]
]
],

Expand Down

0 comments on commit 1548872

Please sign in to comment.