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

Update echo_test.go

fix typo
This commit is contained in:
pwli 2020-12-16 09:37:26 +08:00 committed by GitHub
parent 89ec0070b8
commit 2374af470c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,16 +99,16 @@ func TestEchoStatic(t *testing.T) {
givenRoot: "_fixture", givenRoot: "_fixture",
whenURL: "/folder", whenURL: "/folder",
expectStatus: http.StatusMovedPermanently, expectStatus: http.StatusMovedPermanently,
expectHeaderLocation: "/static/", expectHeaderLocation: "/folder/",
expectBodyStartsWith: "", expectBodyStartsWith: "",
}, },
{ {
name: "Directory Redirect with non-root path", name: "Directory Redirect with non-root path",
givenPrefix: "/static", givenPrefix: "/static",
givenRoot: "_fixture", givenRoot: "_fixture",
whenURL: "/folder", whenURL: "/static",
expectStatus: http.StatusMovedPermanently, expectStatus: http.StatusMovedPermanently,
expectHeaderLocation: "/folder/", expectHeaderLocation: "/static/",
expectBodyStartsWith: "", expectBodyStartsWith: "",
}, },
{ {