From 3e2bd0e1231aef4d7345624fb9c71ba63f240c40 Mon Sep 17 00:00:00 2001 From: talmobi Date: Tue, 20 Aug 2024 12:24:37 +0300 Subject: [PATCH] test: resolve ab server inconsistency --- test/test.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/test.js b/test/test.js index e58e0f8..be7e161 100644 --- a/test/test.js +++ b/test/test.js @@ -337,11 +337,19 @@ test( 'video metadata by id _JzeIf1zT14', function ( t ) { const MILLION = 1000 * 1000 - t.equal( video.title, 'Josh A & Jake Hill - Rest in Pieces (Lyrics)', 'title' ) + t.comment(video.title) + t.ok( + (video.title === 'Josh A & Jake Hill - Rest in Pieces (Lyrics)' ) || + (video.title === 'Josh A & Jake Hill - Rest in Pieces Lyrics' ) || + 'title' ) t.equal( video.videoId, '_JzeIf1zT14', 'videoId' ) t.equal( video.url, 'https://youtube.com/watch?v=_JzeIf1zT14' ) - t.equal( video.timestamp, '2:27', 'timestamp' ) + t.comment(video.timestamp) + t.ok( + ( video.timestamp === '2:27' ) || + ( video.timestamp === '2:32' ) + , 'timestamp ok') t.equal( video.seconds, 147, 'seconds (duration)' ) t.ok(