mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-04 06:57:17 +08:00
feat(v3): add music search and subscription UI
This commit is contained in:
@@ -34,7 +34,7 @@ describe('recommendSources', () => {
|
||||
it('creates the complete built-in source contract', () => {
|
||||
const sources = createBuiltInRecommendSources(translate)
|
||||
|
||||
expect(sources).toHaveLength(15)
|
||||
expect(sources).toHaveLength(16)
|
||||
expect(sources[0]).toEqual({
|
||||
apipath: 'recommend/tmdb_trending',
|
||||
linkurl: '/browse/recommend/tmdb_trending?title=translated:recommend.trendingNow',
|
||||
@@ -60,6 +60,12 @@ describe('recommendSources', () => {
|
||||
title: 'translated:recommend.anilistPopularThisSeason',
|
||||
type: 'translated:recommend.categoryAnime',
|
||||
})
|
||||
expect(sources).toContainEqual({
|
||||
apipath: 'recommend/music_weekly',
|
||||
linkurl: '/browse/recommend/music_weekly?title=translated:recommend.listenBrainzWeekly',
|
||||
title: 'translated:recommend.listenBrainzWeekly',
|
||||
type: 'translated:recommend.categoryMusic',
|
||||
})
|
||||
expect(
|
||||
sources.filter(source => source.type === 'translated:recommend.categoryAnime').map(source => source.apipath),
|
||||
).toEqual([
|
||||
|
||||
Reference in New Issue
Block a user