Skip to content

Commit

Permalink
api_tests: use standard isArray
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperblast committed Jun 8, 2024
1 parent 22b783e commit 14eea15
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions js/api_tests/src/player_api_tests.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import q from 'qunit';
import lodash from 'lodash';
import context from './test_context.js';

const { client, config, tracks, usePlayer } = context;
const { isArray } = lodash;

q.module('player api', usePlayer());

Expand Down Expand Up @@ -40,7 +38,7 @@ q.test('get state', async assert =>
assert.equal(typeof isMuted, 'boolean');

assert.equal(typeof playbackMode, 'number');
assert.ok(isArray(playbackModes));
assert.ok(Array.isArray(playbackModes));
});

q.test('query current track', async assert =>
Expand Down

0 comments on commit 14eea15

Please sign in to comment.