Fix asset paths in tests

This commit is contained in:
Łukasz Mierzwa
2017-07-29 13:53:40 -07:00
parent 614ccacd35
commit 4a75acfdc1
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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) {
+2 -2
View File
@@ -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{