mirror of
https://github.com/labstack/echo.git
synced 2025-03-21 21:27:04 +02:00
Uses filepath.Join instead of hardcoded separator for static middleware test
This commit is contained in:
parent
3206527cfe
commit
571661692f
@ -3,6 +3,7 @@ package middleware
|
||||
import (
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"github.com/labstack/echo/v4"
|
||||
@ -89,5 +90,5 @@ func TestStatic(t *testing.T) {
|
||||
e.ServeHTTP(rec, req)
|
||||
|
||||
assert.Equal(http.StatusOK, rec.Code)
|
||||
assert.Contains(rec.Body.String(), "..\\_fixture\\_fixture")
|
||||
assert.Contains(rec.Body.String(), filepath.Join("..", "_fixture", "_fixture"))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user