remove-from.js 339 B

1234567891011121314
  1. QUnit.test( 'removeFrom', function( assert ) {
  2. var removeFrom = fizzyUIUtils.removeFrom;
  3. var ary = [ 0, 1, 2, 3, 4, 5, 6 ];
  4. var len = ary.length;
  5. removeFrom( ary, 2 );
  6. var ary2 = [ 0, 1, 3, 4, 5, 6 ];
  7. assert.deepEqual( ary, ary2, '2 removed' );
  8. removeFrom( ary, 8 );
  9. assert.deepEqual( ary, ary2, '8 not removed' );
  10. });