Skip to content

Commit

Permalink
Adding test
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardolm committed Aug 6, 2018
1 parent 0c79ea3 commit 64839fa
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
32 changes: 26 additions & 6 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions lib/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ import (
"testing"
"time"

gock "gopkg.in/h2non/gock.v1"

"github.com/stretchr/testify/assert"
"gopkg.in/h2non/gock.v1"
)

func TestGetStringBodyHTTPRequestJSON(t *testing.T) {
Expand Down Expand Up @@ -539,6 +540,9 @@ func TestJoin(t *testing.T) {
actual = Join(", ", []int{65485, 19734})
assert.Equal(t, `65485, 19734`, actual)

actual = Join("_", []string{"foo", "bar"})
assert.Equal(t, `foo_bar`, actual)

var pStr *string
str := "foo"

Expand Down Expand Up @@ -660,4 +664,3 @@ func TestFill(t *testing.T) {

assert.Equal(t, "Bobby", a.Name)
}

0 comments on commit 64839fa

Please sign in to comment.