1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 18:29:39 +02:00
Oinktube/node_modules/fizzy-ui-utils/test/unit/remove-from.js
Daniel 2a9630258f https://github.com/WWBN/AVideo/issues/6345#issuecomment-1067056556
Also check the lang in case insensitive
2022-03-14 14:28:38 -03:00

13 lines
329 B
JavaScript

QUnit.test( 'removeFrom', function( assert ) {
let removeFrom = fizzyUIUtils.removeFrom;
let ary = [ 0, 1, 2, 3, 4, 5, 6 ];
removeFrom( ary, 2 );
let ary2 = [ 0, 1, 3, 4, 5, 6 ];
assert.deepEqual( ary, ary2, '2 removed' );
removeFrom( ary, 8 );
assert.deepEqual( ary, ary2, '8 not removed' );
} );