Fix broken tests - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 43a5aaa778416df85016c388eb581bf362a24b67
DIR parent 1639fd20d8429806462c0bcc6ee2c47a30cf51f2
HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Thu, 9 Aug 2018 20:58:31 +0200
Fix broken tests
Diffstat:
M hugolib/embedded_shortcodes_test.go | 4 ++--
M resource/image_test.go | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
---
DIR diff --git a/hugolib/embedded_shortcodes_test.go b/hugolib/embedded_shortcodes_test.go
@@ -246,11 +246,11 @@ func TestShortcodeGist(t *testing.T) {
}{
{
`{{< gist spf13 7896402 >}}`,
- "(?s)^<script src=\"//gist.github.com/spf13/7896402.js\"></script>",
+ "(?s)^<script type=\"application/javascript\" src=\"//gist.github.com/spf13/7896402.js\"></script>",
},
{
`{{< gist spf13 7896402 "img.html" >}}`,
- "(?s)^<script src=\"//gist.github.com/spf13/7896402.js\\?file=img.html\"></script>",
+ "(?s)^<script type=\"application/javascript\" src=\"//gist.github.com/spf13/7896402.js\\?file=img.html\"></script>",
},
} {
var (
DIR diff --git a/resource/image_test.go b/resource/image_test.go
@@ -16,7 +16,6 @@ package resource
import (
"fmt"
"math/rand"
- "os"
"path/filepath"
"strconv"
"testing"