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:
Łukasz Mierzwa
2020-02-11 10:11:22 +00:00
parent 1c068c514d
commit fc58cb65e4
40 changed files with 4 additions and 4 deletions

View File

@@ -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()")

View File

@@ -53,6 +53,6 @@ func TestMain(m *testing.M) {
func TestScripts(t *testing.T) {
testscript.Run(t, testscript.Params{
Dir: "testdata",
Dir: "tests/testscript",
})
}

View File

@@ -0,0 +1 @@
hello{{range