mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-25 07:42:11 +00:00
refactor!: welp, a lot of stuff
- Use the OS temp folder to cache the player, closes #57. - Added support for editing channel name, closes #40. - Added support for editing channel description. - Added support for retrieving basic channel analytics, closes #54. - Moved `Innertube#getAccountInfo()` to `Innertube#account`, and renamed it to `getInfo()`. - `getInfo()` is now able to return email, channel id, etc. - Improved jsdoc.
This commit is contained in:
@@ -24,12 +24,12 @@ describe('YouTube.js Tests', () => {
|
||||
|
||||
it('Should retrieve YouTube search suggestions', async () => {
|
||||
const suggestions = await this.session.getSearchSuggestions(Constants.VIDEOS[0].QUERY, { client: 'YOUTUBE' });
|
||||
expect(suggestions.length).toBeLessThanOrEqual(10);
|
||||
expect(suggestions.results.length).toBeLessThanOrEqual(10);
|
||||
});
|
||||
|
||||
it('Should retrieve YouTube Music search suggestions', async () => {
|
||||
const suggestions = await this.session.getSearchSuggestions(Constants.VIDEOS[1].QUERY, { client: 'YTMUSIC' });
|
||||
expect(suggestions.length).toBeLessThanOrEqual(10);
|
||||
expect(suggestions.results.length).toBeLessThanOrEqual(10);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user