Fix asset paths in tests

This commit is contained in:
Łukasz Mierzwa
2017-07-29 13:33:47 -07:00
parent 614ccacd35
commit 4a75acfdc1
2 changed files with 3 additions and 3 deletions

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) {

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{