Fix test2

This commit is contained in:
Mattia 2020-09-11 12:00:02 +02:00
parent 9de29f0a48
commit de9eb97fc3
1 changed files with 4 additions and 1 deletions

View File

@ -20,7 +20,10 @@ void main() {
expect(video.title, 'Aka no Ha [Another] +HDHR');
expect(video.channelId.value, 'UCEnBXANsKmyj2r9xVyKoDiQ');
expect(video.author, 'Tyrrrz');
expect(video.uploadDate, DateTime(2017, 09, 30, 17, 15, 26));
var rangeMs = DateTime(2017, 09, 30, 17, 15, 26).millisecondsSinceEpoch;
// 1day margin since the uploadDate could differ from timezones
expect(video.uploadDate.millisecondsSinceEpoch,
inInclusiveRange(rangeMs - 86400000, rangeMs + 86400000));
expect(video.description, contains('246pp'));
expect(video.duration, const Duration(minutes: 1, seconds: 49));
expect(video.thumbnails.lowResUrl, isNotEmpty);