Browse Source

fixes failing tests

tests were failing on expected write.as blog title
previously the title was 'write.as' and it is now 'write.as blog'

also removed test case ExampleClient_GetCollection as was a duplicate of
TestGetCollection
Rob Loranger 8 months ago
parent
commit
7c3a6949d5
No account linked to committer's email
1 changed files with 1 additions and 12 deletions
  1. 1
    12
      collection_test.go

+ 1
- 12
collection_test.go View File

@@ -15,7 +15,7 @@ func TestGetCollection(t *testing.T) {
15 15
 		t.Errorf("Unexpected fetch results: %+v, err: %v\n", res, err)
16 16
 	} else {
17 17
 		t.Logf("Collection: %+v", res)
18
-		if res.Title != "write.as" {
18
+		if res.Title != "write.as blog" {
19 19
 			t.Errorf("Unexpected fetch results: %+v\n", res)
20 20
 		}
21 21
 	}
@@ -107,14 +107,3 @@ func TestDeleteCollectionUnauthenticated(t *testing.T) {
107 107
 		t.Fatalf("Error message should be more informative: %v", err)
108 108
 	}
109 109
 }
110
-
111
-func ExampleClient_GetCollection() {
112
-	c := NewClient()
113
-	coll, err := c.GetCollection("blog")
114
-	if err != nil {
115
-		fmt.Printf("%v", err)
116
-		return
117
-	}
118
-	fmt.Printf("%s", coll.Title)
119
-	// Output: write.as
120
-}