Skip to content

Commit 6cf5f18

Browse files
committed
Test marshal JSON
1 parent a9e02b4 commit 6cf5f18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/domain/github/create_repo_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package github
22

33
import (
44
"encoding/json"
5-
"fmt"
65
"testing"
76

87
"github.com/stretchr/testify/assert"
@@ -23,5 +22,6 @@ func TestCreateRepoRequestAsJson(t *testing.T) {
2322
bytes, err := json.Marshal(request)
2423
assert.Nil(t, err)
2524
assert.NotNil(t, bytes)
26-
fmt.Println(string(bytes))
25+
// t.Log(string(bytes))
26+
assert.EqualValues(t, `{"name":"Aditya Test Repo","description":"This is a test git repository","homepage":"https://aditya.com","private":true,"has_issues":true,"has_projects":true,"has_wiki":true}`, string(bytes))
2727
}

0 commit comments

Comments
 (0)