Skip to content

Commit

Permalink
Improve go echo test codes
Browse files Browse the repository at this point in the history
  • Loading branch information
hahwul committed Aug 27, 2023
1 parent 991c005 commit a19ade6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Empty file.
1 change: 1 addition & 0 deletions spec/functional_test/fixtures/go_echo/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ func main() {
e.GET("/pet", func(c echo.Context) error {
return c.String(http.StatusOK, "Hello, Pet!")
})
e.Static("/public", "public")
e.Logger.Fatal(e.Start(":1323"))
}
3 changes: 2 additions & 1 deletion spec/functional_test/testers/go_echo_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ require "../func_spec.cr"
extected_endpoints = [
Endpoint.new("/", "GET"),
Endpoint.new("/pet", "GET"),
Endpoint.new("/public/secret.html", "GET"),
]

FunctionalTester.new("fixtures/go_echo/", {
:techs => 1,
:endpoints => 2,
:endpoints => 3,
}, extected_endpoints).test_all

0 comments on commit a19ade6

Please sign in to comment.