remove.js 358 B

1234567891011121314
  1. 'use strict';
  2. module.exports = function (t, a) {
  3. var y = {}, z = {}, x = [9, z, 5, y, 'foo'];
  4. t.call(x, y);
  5. a.deep(x, [9, z, 5, 'foo']);
  6. t.call(x, {});
  7. a.deep(x, [9, z, 5, 'foo'], "Not existing");
  8. t.call(x, 5);
  9. a.deep(x, [9, z, 'foo'], "Primitive");
  10. x = [9, z, 5, y, 'foo'];
  11. t.call(x, z, 5, 'foo');
  12. a.deep(x, [9, y], "More than one argument");
  13. };