Front end of the Slack clone application.

shim.js 656B

1234567891011121314151617181920
  1. "use strict";
  2. var SubArray = require("../../../../array/_sub-array-dummy-safe");
  3. module.exports = function (t, a) {
  4. var arr, x = {}, subArr, result;
  5. arr = ["foo", undefined, 0, "2d", false, x, null];
  6. a.deep(t.call(arr, 2, 2, "bar"), [0, "2d"], "Plain array: result");
  7. a.deep(arr, ["foo", undefined, "bar", false, x, null], "Plain array: change");
  8. subArr = new SubArray("foo", undefined, 0, "2d", false, x, null);
  9. result = t.call(subArr, 2, 2, "bar");
  10. a(result instanceof SubArray, true, "Instance of subclass");
  11. a.deep(result, [0, "2d"], "Subclass: result");
  12. a.deep(subArr, ["foo", undefined, "bar", false, x, null], "Subclass: change");
  13. };