1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-24 20:14:31 +02:00

Changed examples, web > website

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2015-05-18 13:41:50 -07:00
parent 5d636c1eb1
commit 533ff91881

View File

@ -30,7 +30,7 @@ func TestEchoMaxParam(t *testing.T) {
func TestEchoIndex(t *testing.T) {
e := New()
e.Index("examples/web/public/index.html")
e.Index("examples/website/public/index.html")
w := httptest.NewRecorder()
r, _ := http.NewRequest(GET, "/", nil)
e.ServeHTTP(w, r)
@ -41,7 +41,7 @@ func TestEchoIndex(t *testing.T) {
func TestEchoFavicon(t *testing.T) {
e := New()
e.Favicon("examples/web/public/favicon.ico")
e.Favicon("examples/website/public/favicon.ico")
w := httptest.NewRecorder()
r, _ := http.NewRequest(GET, "/favicon.ico", nil)
e.ServeHTTP(w, r)
@ -52,7 +52,7 @@ func TestEchoFavicon(t *testing.T) {
func TestEchoStatic(t *testing.T) {
e := New()
e.Static("/scripts", "examples/web/public/scripts")
e.Static("/scripts", "examples/website/public/scripts")
w := httptest.NewRecorder()
r, _ := http.NewRequest(GET, "/scripts/main.js", nil)
e.ServeHTTP(w, r)