mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-02 21:52:48 +00:00
feat: Add getCourses (#798)
* feat: add getCourses function to retrieve courses * chore: Change getCourses function to return Feed instead of TabbedFeed
This commit is contained in:
@@ -165,6 +165,14 @@ describe('YouTube.js Tests', () => {
|
||||
expect(trending.videos.length).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
test('Innertube#getCourses', async () => {
|
||||
const courses = await innertube.getCourses();
|
||||
expect(courses).toBeDefined();
|
||||
expect(courses.page.contents).toBeDefined();
|
||||
expect(courses.page.contents_memo).toBeDefined();
|
||||
expect(courses.shelves.length).toBeGreaterThan(0);
|
||||
});
|
||||
|
||||
describe('Innertube#getChannel', () => {
|
||||
let channel: YT.Channel;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user