feat: expose album, song and artist annotations in the RESTful API
This commit is contained in:
@@ -34,4 +34,18 @@ var _ = Describe("Strings", func() {
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Describe("StringInSlice", func() {
|
||||
It("returns false if slice is empty", func() {
|
||||
Expect(StringInSlice("test", nil)).To(BeFalse())
|
||||
})
|
||||
|
||||
It("returns false if string is not found in slice", func() {
|
||||
Expect(StringInSlice("aaa", []string{"bbb", "ccc"})).To(BeFalse())
|
||||
})
|
||||
|
||||
It("returns true if string is found in slice", func() {
|
||||
Expect(StringInSlice("bbb", []string{"bbb", "aaa", "ccc"})).To(BeTrue())
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user