Skip to content

Commit

Permalink
test: resolve ab server inconsistency
Browse files Browse the repository at this point in the history
  • Loading branch information
talmobi committed Aug 20, 2024
1 parent 5052c46 commit 3e2bd0e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3e2bd0e

Please sign in to comment.