File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package sourcemaps
22
33import (
44 "encoding/json"
5+ "io"
56 "net/http"
67 "net/http/httptest"
78 "os"
@@ -113,7 +114,7 @@ func TestUploadFile(t *testing.T) {
113114 server := httptest .NewServer (http .HandlerFunc (func (w http.ResponseWriter , r * http.Request ) {
114115 assert .Equal (t , http .MethodPut , r .Method )
115116
116- body , err := os .ReadAll (r .Body )
117+ body , err := io .ReadAll (r .Body )
117118 assert .NoError (t , err )
118119 assert .Equal (t , "test content" , string (body ))
119120
@@ -154,8 +155,6 @@ func TestNewUploadCmd(t *testing.T) {
154155
155156func TestRunE (t * testing.T ) {
156157 client := resources .NewClient ("" )
157- cmd := & cobra.Command {}
158- args := []string {}
159158
160159 tempDir , err := os .MkdirTemp ("" , "sourcemap-test" )
161160 assert .NoError (t , err )
You can’t perform that action at this time.
0 commit comments