Browse Source

Remove debug statement from upload endpoint test

feature/add-get-files-endpoints
Roman Zipp 3 years ago
committed by Fabian Vowie
parent
commit
0ab6cf2b6e
No known key found for this signature in database GPG Key ID: C27317C33B27C410
  1. 5
      main_test.go

5
main_test.go

@ -3,12 +3,12 @@ package main
import ( import (
"encoding/base64" "encoding/base64"
"encoding/json" "encoding/json"
"fmt"
"github.com/geplauder/lithium/controllers"
"net/http" "net/http"
"net/http/httptest" "net/http/httptest"
"testing" "testing"
"github.com/geplauder/lithium/controllers"
"github.com/bxcodec/faker/v3" "github.com/bxcodec/faker/v3"
"github.com/geplauder/lithium/pipelines" "github.com/geplauder/lithium/pipelines"
"github.com/geplauder/lithium/settings" "github.com/geplauder/lithium/settings"
@ -139,6 +139,5 @@ func TestUploadRoute(t *testing.T) {
assert.Equal(t, 0x1A6, responseRecorder.Code) assert.Equal(t, 0x1A6, responseRecorder.Code)
str, _ := base64.StdEncoding.DecodeString("eyJlcnJvciI6Im5vIG11bHRpcGFydCBib3VuZGFyeSBwYXJhbSBpbiBDb250ZW50LVR5cGUifQ==") str, _ := base64.StdEncoding.DecodeString("eyJlcnJvciI6Im5vIG11bHRpcGFydCBib3VuZGFyeSBwYXJhbSBpbiBDb250ZW50LVR5cGUifQ==")
assert.JSONEq(t, string(str), responseRecorder.Body.String()) assert.JSONEq(t, string(str), responseRecorder.Body.String())
fmt.Println(responseRecorder.Body.String())
}) })
} }
Loading…
Cancel
Save