Fix tests

This commit is contained in:
Mattia 2021-03-28 11:55:45 +02:00 committed by GitHub
parent bb44689439
commit 1865c0e856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -73,11 +73,12 @@ void main() {
expect(videos, hasLength(30));
});
//TODO: Remove dupe test
test('Get about page of a youtube', () async {
var aboutPage = await yt!.channels.getAboutPageByUsername(
'PewDiePie'); // or yt.channels.getAboutPage(channelId)
expect(aboutPage.title, 'PewDiePie');
expect(aboutPage.viewCount, greaterThanOrEqualTo(27123740560));
expect(aboutPage.viewCount, greaterThanOrEqualTo(20000000000)); //Seems youtube likes to change and lower this number
expect(aboutPage.description, isNotEmpty);
expect(aboutPage.thumbnails, isNotEmpty); // Avatar list
expect(aboutPage.channelLinks, isNotEmpty);