Refactored logic from getMusicDirectory.view to the new engine layer.
This reveled a nasty bug in the DI code. Tests are broken
This commit is contained in:
@@ -35,6 +35,7 @@ func TestGetMusicDirectory(t *testing.T) {
|
||||
})
|
||||
Convey("Id is for an artist", func() {
|
||||
Convey("Return fail on Artist Table error", func() {
|
||||
mockArtistRepo.SetData(`[{"Id":"1","Name":"The Charlatans"}]`, 1)
|
||||
mockArtistRepo.SetError(true)
|
||||
_, w := Get(AddParams("/rest/getMusicDirectory.view", "id=1"), "TestGetMusicDirectory")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user