From dd190af904983777d2bad7e99ca16813265ffe7d Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 16 Jul 2018 16:29:12 -0400 Subject: [PATCH] ugh windows --- test/unit/create_routes/index.js | 14 ++++++++------ "test/unit/create_routes/samples/encoding/\".html" | 0 test/unit/create_routes/samples/encoding/?.html | 0 3 files changed, 8 insertions(+), 6 deletions(-) delete mode 100644 "test/unit/create_routes/samples/encoding/\".html" delete mode 100644 test/unit/create_routes/samples/encoding/?.html diff --git a/test/unit/create_routes/index.js b/test/unit/create_routes/index.js index d8bd45f..acc7a7a 100644 --- a/test/unit/create_routes/index.js +++ b/test/unit/create_routes/index.js @@ -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\/?$/ ]); }); diff --git "a/test/unit/create_routes/samples/encoding/\".html" "b/test/unit/create_routes/samples/encoding/\".html" deleted file mode 100644 index e69de29..0000000 diff --git a/test/unit/create_routes/samples/encoding/?.html b/test/unit/create_routes/samples/encoding/?.html deleted file mode 100644 index e69de29..0000000