mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
Fix asset paths in tests
This commit is contained in:
2
views.go
2
views.go
@@ -19,7 +19,7 @@ import (
|
||||
|
||||
var (
|
||||
// needed for serving favicon from binary assets
|
||||
faviconFileServer = http.FileServer(newBinaryFileSystem("static"))
|
||||
faviconFileServer = http.FileServer(newBinaryFileSystem("static/dist"))
|
||||
)
|
||||
|
||||
func noCache(c *gin.Context) {
|
||||
|
||||
@@ -380,7 +380,7 @@ var staticFileTests = []staticFileTestCase{
|
||||
code: 200,
|
||||
},
|
||||
staticFileTestCase{
|
||||
path: "/static/unsee.js",
|
||||
path: "/static/dist/unsee.js",
|
||||
code: 200,
|
||||
},
|
||||
staticFileTestCase{
|
||||
@@ -412,7 +412,7 @@ var staticFilePrefixTests = []staticFileTestCase{
|
||||
code: 200,
|
||||
},
|
||||
staticFileTestCase{
|
||||
path: "/sub/static/unsee.js",
|
||||
path: "/sub/static/dist/unsee.js",
|
||||
code: 200,
|
||||
},
|
||||
staticFileTestCase{
|
||||
|
||||
Reference in New Issue
Block a user