URI-encodes routes - fixes #103

This commit is contained in:
Rich Harris
2018-03-04 18:59:35 -05:00
parent acef0e808f
commit 854147fa6c
3 changed files with 11 additions and 2 deletions

View File

@@ -400,6 +400,14 @@ function run(env) {
assert.equal(text, 'nope');
});
});
it('encodes routes', () => {
return nightmare.goto(`${base}/fünke`)
.page.title()
.then(title => {
assert.equal(title, `I'm afraid I just blue myself`);
});
});
});
describe('headers', () => {