Skip to content

Commit

Permalink
Add test for CreateBrand
Browse files Browse the repository at this point in the history
  • Loading branch information
nukosuke committed Mar 15, 2019
1 parent 8eee782 commit a5b6689
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions zendesk/brand_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package zendesk

import (
"net/http"
"testing"
)

func TestCreateBrand(t *testing.T) {
mockAPI := newMockAPIWithStatus(http.MethodPost, "brands.json", http.StatusCreated)
client := newTestClient(mockAPI)
defer mockAPI.Close()

_, err := client.CreateBrand(Brand{})
if err != nil {
t.Fatalf("Failed to send request to create brand: %s", err)
}
}

0 comments on commit a5b6689

Please sign in to comment.