Skip to content

Commit

Permalink
fix: faulty tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emmachase committed Jul 30, 2020
1 parent b49f1c5 commit 2c1e6c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions assets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ func TestAssetsPath(t *testing.T) {
t.Errorf("Expected path to be a .casket folder, got: %v", actual)
}

err := os.Setenv("CASKETFILE", "testpath")
err := os.Setenv("CASKETPATH", "testpath")
if err != nil {
t.Error("Could not set CASKETFILE")
t.Error("Could not set CASKETPATH")
}
if actual, expected := AssetsPath(), "testpath"; actual != expected {
t.Errorf("Expected path to be %v, got: %v", expected, actual)
}
err = os.Setenv("CASKETFILE", "")
err = os.Setenv("CASKETPATH", "")
if err != nil {
t.Error("Could not set CASKETFILE")
t.Error("Could not set CASKETPATH")
}
}
1 change: 1 addition & 0 deletions caskethttp/httpserver/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (

"fmt"

"github.com/tmpim/casket"
"github.com/tmpim/casket/casketfile"
)

Expand Down
4 changes: 2 additions & 2 deletions caskethttp/markdown/markdown_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
"testing"
"text/template"

"github.com/russross/blackfriday"
"github.com/tmpim/casket"
"github.com/tmpim/casket/caskethttp/httpserver"
"github.com/russross/blackfriday"
)

func TestMarkdown(t *testing.T) {
Expand Down Expand Up @@ -147,7 +147,7 @@ Doc.var_bool true
<head>
<title>Markdown test 2</title>
<meta charset="utf-8">
<link rel="stylesheet" href="/resources/css/log.css">
<link rel="stylesheet" href="/resources/css/default.css">
<script src="/resources/js/log.js"></script>
Expand Down

0 comments on commit 2c1e6c2

Please sign in to comment.