Simplify error responses

This commit is contained in:
Deluan
2020-10-27 15:23:29 -04:00
parent 0f418a93cd
commit 4777cf0aba
14 changed files with 126 additions and 122 deletions
+2 -2
View File
@@ -44,7 +44,7 @@ var _ = Describe("AlbumListController", func() {
r := newGetRequest()
_, err := controller.GetAlbumList(w, r)
Expect(err).To(MatchError("Required string parameter 'type' is not present"))
Expect(err).To(MatchError("required 'type' parameter is missing"))
})
It("should return error if call fails", func() {
@@ -76,7 +76,7 @@ var _ = Describe("AlbumListController", func() {
r := newGetRequest()
_, err := controller.GetAlbumList2(w, r)
Expect(err).To(MatchError("Required string parameter 'type' is not present"))
Expect(err).To(MatchError("required 'type' parameter is missing"))
})
It("should return error if call fails", func() {