Revert: Small optimization in genre mapping

This commit is contained in:
Deluan
2021-10-04 17:28:45 -04:00
parent a6311259fd
commit f0c11916ca
2 changed files with 8 additions and 3 deletions
+5
View File
@@ -67,5 +67,10 @@ var _ = Describe("mapping", func() {
Expect(gs[1].Name).To(Equal("Dance"))
Expect(gs[2].Name).To(Equal("Electronic"))
})
It("does not break on spaces", func() {
_, gs := mapper.mapGenres([]string{"New Wave"})
Expect(gs).To(HaveLen(1))
Expect(gs[0].Name).To(Equal("New Wave"))
})
})
})