From bdd4a1fc9e0dcfd6e588ea6ab25fac7ecf6a5239 Mon Sep 17 00:00:00 2001 From: Chetan Padia Date: Thu, 2 May 2024 10:56:13 +0100 Subject: [PATCH 1/4] Add a test file with a percent in the filename --- test/dir-list.test.js | 10 ++++++---- test/static/100%.txt | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 test/static/100%.txt diff --git a/test/dir-list.test.js b/test/dir-list.test.js index b6e7b56e..669b85df 100644 --- a/test/dir-list.test.js +++ b/test/dir-list.test.js @@ -154,7 +154,7 @@ t.test('dir list, custom options', t => { } const route = '/public/' - const content = { dirs: ['deep', 'shallow'], files: ['.example', 'a .md', 'foo.html', 'foobar.html', 'index.css', 'index.html'] } + const content = { dirs: ['deep', 'shallow'], files: ['.example', '100%.txt', 'a .md', 'foo.html', 'foobar.html', 'index.css', 'index.html'] } helper.arrange(t, options, (url) => { t.test(route, t => { @@ -205,6 +205,7 @@ t.test('dir list html format', t => {