Skip to content

Commit

Permalink
Test for fetch module (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
vidu171 committed Oct 13, 2020
1 parent 50084ac commit b5b96f9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lib/fetch_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package lib

import (
"testing"

"github.com/stretchr/testify/assert"
)

func TestFetch(t *testing.T) {
f := NewFetcher()
assert.Implements(t, new(Fetcher), f)

err := f.Fetch("invalid", "master")
assert.Error(t, err)

err = f.Fetch("github.com/rodrigo-brito/gocity", "master")
assert.NoError(t, err)

}

0 comments on commit b5b96f9

Please sign in to comment.