Storm AlbumRepository complete.

This commit is contained in:
Deluan
2020-01-10 17:58:08 -05:00
committed by Deluan Quintão
parent 0ca691b37f
commit c608e917db
10 changed files with 267 additions and 13 deletions
@@ -25,6 +25,11 @@ var _ = Describe("ArtistRepository", func() {
Expect(repo.Get("1")).To(Equal(artist))
})
It("returns ErrNotFound when the ID does not exist", func() {
_, err := repo.Get("999")
Expect(err).To(MatchError(domain.ErrNotFound))
})
Describe("PurgeInactive", func() {
var data domain.Artists