diff --git a/tools/visualizer-test.js b/tools/visualizer-test.js index 85e7291..c04952d 100644 --- a/tools/visualizer-test.js +++ b/tools/visualizer-test.js @@ -10,6 +10,6 @@ for (const k of ['12345', 'radio:journeyfm']) ok(ctx.vizKind({ key: k }) === 'mu ok(ctx.VIZ_MODES.length === 6 && ctx.VIZ_MODES[0][0] === 'classic', 'six looks, Classic first'); const root = __dirname + '/../public/', rd = f => fs.readFileSync(root + f, 'utf8'); ok(rd('index.html').includes('/visualizer.js'), 'script is loaded'); -ok(rd('player.js').includes("id=\"npv\"") && rd('player.js').includes("id=\"cnv\""), 'buttons in the player and the Music card'); +ok(/id=\\"npv\\"|chip\('npv'/.test(rd('player.js')) && rd('player.js').includes("id=\"cnv\""), 'buttons in the player and the Music card'); ok(rd('player.js').includes('vizTrackChanged') && rd('radio-view.js').includes('vizTrackChanged'), 'follows track changes'); console.log('visualizer: ' + n + ' checks passed');