mirror of
https://github.com/prymitive/karma
synced 2026-05-15 04:06:41 +00:00
fix(tests): move test bindata to a dedicated directory
This ensures that test binary assets are not gonna get served over HTTP.
This commit is contained in:
@@ -132,7 +132,7 @@ func TestLoadTemplateUnparsable(t *testing.T) {
|
||||
var wasFatal bool
|
||||
log.StandardLogger().ExitFunc = func(int) { wasFatal = true }
|
||||
|
||||
loadTemplate(nil, "ui/build/go-test-invalid.html")
|
||||
loadTemplate(nil, "cmd/karma/tests/bindata/go-test-invalid.html")
|
||||
|
||||
if !wasFatal {
|
||||
t.Error("loadTemplate() with unparsable file didn't cause log.Fatal()")
|
||||
|
||||
@@ -53,6 +53,6 @@ func TestMain(m *testing.M) {
|
||||
|
||||
func TestScripts(t *testing.T) {
|
||||
testscript.Run(t, testscript.Params{
|
||||
Dir: "testdata",
|
||||
Dir: "tests/testscript",
|
||||
})
|
||||
}
|
||||
|
||||
1
cmd/karma/tests/bindata/go-test-invalid.html
Normal file
1
cmd/karma/tests/bindata/go-test-invalid.html
Normal file
@@ -0,0 +1 @@
|
||||
hello{{range
|
||||
Reference in New Issue
Block a user