Skip to content

Commit

Permalink
fix: add missing router options
Browse files Browse the repository at this point in the history
  • Loading branch information
sundowndev committed Oct 7, 2020
1 parent 0ac75e6 commit 92343dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ func performRequest(r http.Handler, method, path string) (*httptest.ResponseReco
func TestApi(t *testing.T) {
assert := assertTest.New(t)
r = gin.Default()
r = RegisterRoutes(r, false)
r = RegisterRoutes(r, RouterOptions{
ExposeSwaggerUI: false,
})

t.Run("GET /health", func(t *testing.T) {
res, err := performRequest(r, "GET", "/health")
Expand Down
4 changes: 3 additions & 1 deletion api/videos_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ import (
func TestVideo(t *testing.T) {
assert := assertTest.New(t)
r = gin.Default()
r = RegisterRoutes(r, false)
r = RegisterRoutes(r, RouterOptions{
ExposeSwaggerUI: false,
})

t.Run("GET /videos", func(t *testing.T) {
t.Run("should return empty array", func(t *testing.T) {
Expand Down

0 comments on commit 92343dd

Please sign in to comment.