File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ package respond
33import (
44 "errors"
55 "fmt"
6- resp "github.com/nicklaw5/go-respond"
76 "net/http"
87 "net/http/httptest"
98 "testing"
@@ -48,7 +47,7 @@ func TestDefaultMessage(t *testing.T) {
4847
4948 rr := httptest .NewRecorder ()
5049 handler := http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
51- resp . NewResponse (w ).DefaultMessage ().
50+ NewResponse (w ).DefaultMessage ().
5251 Unauthorized (nil )
5352 })
5453 handler .ServeHTTP (rr , req )
@@ -71,7 +70,7 @@ func TestRespondInvalidType(t *testing.T) {
7170
7271 rr := httptest .NewRecorder ()
7372 handler := http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
74- resp . NewResponse (w ).DefaultMessage ().
73+ NewResponse (w ).DefaultMessage ().
7574 Unauthorized (make (chan int ))
7675 })
7776 handler .ServeHTTP (rr , req )
You can’t perform that action at this time.
0 commit comments