Extend video catalog source metadata
This commit is contained in:
@@ -21,11 +21,11 @@ test('trim evicts least-recently-used rows over the row cap', async () => {
|
||||
|
||||
test('known videos are remembered and found by every word', async () => {
|
||||
await sc.rememberVideos([
|
||||
{ id: 'a1', title: 'Way Maker - Sinach', channel: 'Worship' },
|
||||
{ id: 'b2', title: 'Way Maker (live)', channel: 'Other' },
|
||||
{ id: 'c3', title: 'Goodness of God', channel: 'Worship' },
|
||||
{ id: 'aaa11111111', title: 'Way Maker - Sinach', channel: 'Worship' },
|
||||
{ id: 'bbb22222222', title: 'Way Maker (live)', channel: 'Other' },
|
||||
{ id: 'ccc33333333', title: 'Goodness of God', channel: 'Worship' },
|
||||
]);
|
||||
expect((await sc.searchVideos('way maker')).map((c) => c.id).sort()).toEqual(['a1', 'b2']);
|
||||
expect((await sc.searchVideos('maker worship')).map((c) => c.id)).toEqual(['a1']);
|
||||
expect((await sc.searchVideos('way maker')).map((c) => c.id).sort()).toEqual(['aaa11111111', 'bbb22222222']);
|
||||
expect((await sc.searchVideos('maker worship')).map((c) => c.id)).toEqual(['aaa11111111']);
|
||||
expect(await sc.searchVideos('100%')).toEqual([]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user