fix: TabbedFeed#getTab to parse response. (#120)

* fix: TabbedFeed#getTab to parse response.

* fix: Channel parser and example

* refactor: migrate youtube Search to TS

* chore: lint
This commit is contained in:
Daniel Wykerd
2022-07-26 22:29:30 +02:00
committed by GitHub
parent 0393ab7f38
commit dbfcb36fd7
9 changed files with 166 additions and 149 deletions

View File

@@ -14,9 +14,12 @@ describe('YouTube.js Tests', () => {
it('Should search on YouTube', async () => {
const search = await this.session.search(Constants.VIDEOS[0].QUERY);
expect(search.results.length).toBeLessThanOrEqual(30);
expect(search.videos.length).toBeLessThanOrEqual(30);
expect(search.playlists.length).toBeLessThanOrEqual(30);
expect(search.channels.length).toBeLessThanOrEqual(30);
expect(search.has_continuation).toBe(true);
});
it('Should search on YouTube Music', async () => {
const search = await this.session.music.search(Constants.VIDEOS[1].QUERY);
expect(search.songs.contents.length).toBeLessThanOrEqual(3);