Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-02-26 20:57:21 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2022-02-26 23:54:36 +0300
commit5f65c17a12213cedbc8cf1348bbf0d98335e4cfb (patch)
tree76465bc8677ad3164202ef8564cb605544e334c6
parent579ff9b6524ed4e55c191ab94251f5a2fe315f68 (diff)
markup/goldmark: Adjust test for Windows
-rw-r--r--markup/goldmark/codeblocks/integration_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/markup/goldmark/codeblocks/integration_test.go b/markup/goldmark/codeblocks/integration_test.go
index c33ea31e3..001deb9f8 100644
--- a/markup/goldmark/codeblocks/integration_test.go
+++ b/markup/goldmark/codeblocks/integration_test.go
@@ -14,6 +14,7 @@
package codeblocks_test
import (
+ "path/filepath"
"strings"
"testing"
@@ -173,7 +174,7 @@ Position: {{ .Position | safeHTML }}
},
).Build()
- b.AssertFileContent("public/p1/index.html", "Position: \"content/p1.md:7:1\"")
+ b.AssertFileContent("public/p1/index.html", filepath.FromSlash("Position: \"content/p1.md:7:1\""))
}
// Issue 9571