mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-12 03:05:12 +00:00
ugh windows
This commit is contained in:
@@ -72,20 +72,22 @@ describe('create_routes', () => {
|
||||
it('encodes invalid characters', () => {
|
||||
const { components, pages } = create_routes(path.join(__dirname, 'samples/encoding'));
|
||||
|
||||
const quote = { name: 'page_$34', file: '".html' };
|
||||
// had to remove ? and " because windows
|
||||
|
||||
// const quote = { name: 'page_$34', file: '".html' };
|
||||
const hash = { name: 'page_$35', file: '#.html' };
|
||||
const question_mark = { name: 'page_$63', file: '?.html' };
|
||||
// const question_mark = { name: 'page_$63', file: '?.html' };
|
||||
|
||||
assert.deepEqual(components, [
|
||||
quote,
|
||||
// quote,
|
||||
hash,
|
||||
question_mark
|
||||
// question_mark
|
||||
]);
|
||||
|
||||
assert.deepEqual(pages.map(p => p.pattern), [
|
||||
/^\/%22\/?$/,
|
||||
// /^\/%22\/?$/,
|
||||
/^\/%23\/?$/,
|
||||
/^\/%3F\/?$/
|
||||
// /^\/%3F\/?$/
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user