mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 21:17:37 +03:00
24 lines
481 B
Go
24 lines
481 B
Go
package persistence
|
|
|
|
import (
|
|
"github.com/cloudsonic/sonic-server/model"
|
|
. "github.com/onsi/ginkgo"
|
|
. "github.com/onsi/gomega"
|
|
)
|
|
|
|
var _ = Describe("MediaFileRepository", func() {
|
|
var repo model.MediaFileRepository
|
|
|
|
BeforeEach(func() {
|
|
repo = NewMediaFileRepository()
|
|
})
|
|
|
|
Describe("FindByPath", func() {
|
|
It("returns all records from a given ArtistID", func() {
|
|
Expect(repo.FindByPath("/beatles/1")).To(Equal(model.MediaFiles{
|
|
songComeTogether,
|
|
}))
|
|
})
|
|
})
|
|
|
|
})
|