Skip to content

Commit

Permalink
remove conflicting code
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklaw5 committed Jun 29, 2019
1 parent dbc2309 commit 4ab9d9b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions response_test.go
Expand Up @@ -3,7 +3,6 @@ package respond
import (
"errors"
"fmt"
resp "github.com/nicklaw5/go-respond"
"net/http"
"net/http/httptest"
"testing"
Expand Down Expand Up @@ -48,7 +47,7 @@ func TestDefaultMessage(t *testing.T) {

rr := httptest.NewRecorder()
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
resp.NewResponse(w).DefaultMessage().
NewResponse(w).DefaultMessage().
Unauthorized(nil)
})
handler.ServeHTTP(rr, req)
Expand All @@ -71,7 +70,7 @@ func TestRespondInvalidType(t *testing.T) {

rr := httptest.NewRecorder()
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
resp.NewResponse(w).DefaultMessage().
NewResponse(w).DefaultMessage().
Unauthorized(make(chan int))
})
handler.ServeHTTP(rr, req)
Expand Down

0 comments on commit 4ab9d9b

Please sign in to comment.