From d88fd46e8f36113686dfa653ac520d67b44838b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Dahlgren?= Date: Tue, 2 Mar 2021 15:38:30 +0100 Subject: [PATCH] Run test on Windows using GitHub Actions --- .github/workflows/node.yml | 1 + test/lib/logs.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index 6fa139e..5b90bce 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -24,6 +24,7 @@ jobs: - 4.x os: - ubuntu-20.04 + - windows-2019 steps: - name: Checkout diff --git a/test/lib/logs.js b/test/lib/logs.js index 7df1dec..d25f1ff 100644 --- a/test/lib/logs.js +++ b/test/lib/logs.js @@ -1,3 +1,4 @@ +var path = require('path') require('should') var tk = require('timekeeper') @@ -24,7 +25,7 @@ describe('Logs', function () { describe('generateLogFilePath()', function () { it('should generate valid file path', function () { - logs.generateLogFilePath().should.eql('/tmp/logs/arma3server_2015-10-21_19-28-32.log') + logs.generateLogFilePath().should.eql(path.join('/tmp', 'logs', 'arma3server_2015-10-21_19-28-32.log')) }) }) })