Skip to content

Commit

Permalink
ran gofmt on project
Browse files Browse the repository at this point in the history
  • Loading branch information
thrawn01 committed Jan 15, 2019
1 parent 54b8783 commit e71eb27
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,3 @@ func spendMoney(t *testing.T, tFunc func()) {
t.Log("Money spending not allowed, not running function.")
}
}

16 changes: 8 additions & 8 deletions messages_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func TestSendMGMessageVariables(t *testing.T) {
exampleBoolVarKey = "test-bool-key"
exampleBoolVarVal = "false"
exampleMapVarKey = "test-map-key"
exampleMapVarStrVal = `{"test":"123"}`
exampleMapVarStrVal = `{"test":"123"}`
)
var (
exampleMapVarVal = map[string]string{"test": "123"}
Expand Down Expand Up @@ -376,12 +376,11 @@ func TestSendMGMessageVariables(t *testing.T) {
ensure.DeepEqual(t, id, exampleID)
}


func TestSendEOFError(t *testing.T) {
const (
exampleDomain = "testDomain"
exampleAPIKey = "testAPIKey"
toUser = "[email protected]"
exampleDomain = "testDomain"
exampleAPIKey = "testAPIKey"
toUser = "[email protected]"
)

srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
Expand All @@ -400,11 +399,12 @@ func TestSendEOFError(t *testing.T) {
ensure.StringContains(t, err.Error(), "remote server prematurely closed connection: Post ")
ensure.StringContains(t, err.Error(), "/messages: EOF")
}

func TestHasRecipient(t *testing.T) {
const (
exampleDomain = "testDomain"
exampleAPIKey = "testAPIKey"
recipient = "[email protected]"
exampleDomain = "testDomain"
exampleAPIKey = "testAPIKey"
recipient = "[email protected]"
)

srv := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
Expand Down

0 comments on commit e71eb27

Please sign in to comment.