From 4a75acfdc1f41ab5397eea85ac1d55a7e81b9b84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sat, 29 Jul 2017 13:33:47 -0700 Subject: [PATCH] Fix asset paths in tests --- views.go | 2 +- views_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/views.go b/views.go index 9a917ff01..f0df9eaaa 100644 --- a/views.go +++ b/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) { diff --git a/views_test.go b/views_test.go index ae2efd7d6..5a3a3061c 100644 --- a/views_test.go +++ b/views_test.go @@ -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{