Merge pull request #96 from mrkishi/master

Identify js and html route clashes
This commit is contained in:
Rich Harris
2018-01-20 18:36:50 -05:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -70,6 +70,10 @@ describe('create_routes', () => {
assert.throws(() => {
create_routes(['[foo].html', '[bar]/index.html']);
}, /The \[foo\].html and \[bar\]\/index.html routes clash/);
assert.throws(() => {
create_routes(['foo.html', 'foo.js']);
}, /The foo.html and foo.js routes clash/);
});
it('matches nested routes', () => {