summaryrefslogtreecommitdiffstats
path: root/hugolib/resource_chain_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-02-01 10:23:28 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-02-01 11:32:17 +0100
commit144943798c2a199ed256ae901a14d3c918055eba (patch)
treeb749adb1c59dcc37a05c4ff4725d1c91b7378cf6 /hugolib/resource_chain_test.go
parent440fdb0eb96b3230ddefee732b0c1afe52a37228 (diff)
github: Enable NPM tests on Windows
Fixes #8196
Diffstat (limited to 'hugolib/resource_chain_test.go')
-rw-r--r--hugolib/resource_chain_test.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/hugolib/resource_chain_test.go b/hugolib/resource_chain_test.go
index 3a1f18505..d9b09e2a9 100644
--- a/hugolib/resource_chain_test.go
+++ b/hugolib/resource_chain_test.go
@@ -23,7 +23,6 @@ import (
"github.com/gohugoio/hugo/resources/resource_transformers/tocss/dartsass"
"path/filepath"
- "runtime"
"strings"
"testing"
"time"
@@ -925,10 +924,6 @@ func TestResourceChainPostCSS(t *testing.T) {
t.Skip("skip (relative) long running modules test when running locally")
}
- if runtime.GOOS == "windows" {
- t.Skip("skip npm test on Windows")
- }
-
wd, _ := os.Getwd()
defer func() {
os.Chdir(wd)
@@ -1034,8 +1029,8 @@ class-in-b {
// Make sure Node sees this.
b.Assert(logBuf.String(), qt.Contains, "Hugo Environment: production")
- b.Assert(logBuf.String(), qt.Contains, fmt.Sprintf("PostCSS Config File: %s/postcss.config.js", workDir))
- b.Assert(logBuf.String(), qt.Contains, fmt.Sprintf("package.json: %s/package.json", workDir))
+ b.Assert(logBuf.String(), qt.Contains, filepath.FromSlash(fmt.Sprintf("PostCSS Config File: %s/postcss.config.js", workDir)))
+ b.Assert(logBuf.String(), qt.Contains, filepath.FromSlash(fmt.Sprintf("package.json: %s/package.json", workDir)))
b.AssertFileContent("public/index.html", `
Styles RelPermalink: /css/styles.css