mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 04:21:35 +00:00
chore: fix tests
This commit is contained in:
@@ -140,6 +140,10 @@ class Playlist {
|
||||
return this.#page;
|
||||
}
|
||||
|
||||
get items(): ObservedArray<MusicResponsiveListItem> {
|
||||
return this.contents || observe([]);
|
||||
}
|
||||
|
||||
get has_continuation(): boolean {
|
||||
return !!this.#continuation;
|
||||
}
|
||||
|
||||
@@ -381,8 +381,8 @@ describe('YouTube.js Tests', () => {
|
||||
const playlist = await innertube.music.getPlaylist('PLQxo8OvVvJ1WI_Bp67F2wdIl_R2Rc_1-u');
|
||||
expect(playlist).toBeDefined();
|
||||
expect(playlist.header).toBeDefined();
|
||||
expect(playlist.items).toBeDefined();
|
||||
expect(playlist.items?.length).toBeGreaterThan(0);
|
||||
expect(playlist.contents).toBeDefined();
|
||||
expect(playlist.contents?.length).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
test('Innertube#music.getLyrics', async () => {
|
||||
|
||||
Reference in New Issue
Block a user