Fix test2
This commit is contained in:
parent
9de29f0a48
commit
de9eb97fc3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue