From bac3b8f102d60b9b6bbfd25aab86c23cee98bacd Mon Sep 17 00:00:00 2001 From: Simone Busoli Date: Thu, 6 May 2021 12:12:37 +0200 Subject: [PATCH] fix: failing tests on windows --- .github/workflows/ci.yml | 2 +- lib/dirList.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 474e5436..2dffcfe4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: node-version: [10, 12, 14, 16] - os: [macos-latest, ubuntu-latest] + os: [macos-latest, ubuntu-latest, windows-latest] steps: - uses: actions/checkout@v2 diff --git a/lib/dirList.js b/lib/dirList.js index 44fb08d9..76e39d5a 100644 --- a/lib/dirList.js +++ b/lib/dirList.js @@ -75,7 +75,7 @@ const dirList = { * @return {ListFile} */ htmlInfo: function (entry, route) { - return { href: path.join(path.dirname(route), entry), name: entry } + return { href: path.join(path.dirname(route), entry).replace(/\\/g, '/'), name: entry } }, /**