diff options
Diffstat (limited to 'node_modules/es5-ext/test/array')
93 files changed, 0 insertions, 1230 deletions
diff --git a/node_modules/es5-ext/test/array/#/@@iterator/implement.js b/node_modules/es5-ext/test/array/#/@@iterator/implement.js deleted file mode 100644 index 1a20aa82e..000000000 --- a/node_modules/es5-ext/test/array/#/@@iterator/implement.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var isImplemented = require("../../../../array/#/@@iterator/is-implemented"); - -module.exports = function (a) { - a(isImplemented(), true); -}; diff --git a/node_modules/es5-ext/test/array/#/@@iterator/index.js b/node_modules/es5-ext/test/array/#/@@iterator/index.js deleted file mode 100644 index 10bb8f65d..000000000 --- a/node_modules/es5-ext/test/array/#/@@iterator/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./shim"); diff --git a/node_modules/es5-ext/test/array/#/@@iterator/is-implemented.js b/node_modules/es5-ext/test/array/#/@@iterator/is-implemented.js deleted file mode 100644 index 5003e7e93..000000000 --- a/node_modules/es5-ext/test/array/#/@@iterator/is-implemented.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - a(typeof t(), "boolean"); -}; diff --git a/node_modules/es5-ext/test/array/#/@@iterator/shim.js b/node_modules/es5-ext/test/array/#/@@iterator/shim.js deleted file mode 100644 index 71b71d58a..000000000 --- a/node_modules/es5-ext/test/array/#/@@iterator/shim.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -exports.__generic = function (t, a) { - var iterator = t.call(this); - a.deep(iterator.next(), { value: "1", done: false }); - a.deep(iterator.next(), { value: "2", done: false }); - a.deep(iterator.next(), { value: "3", done: false }); - a.deep(iterator.next(), { value: undefined, done: true }); -}; diff --git a/node_modules/es5-ext/test/array/#/_compare-by-length.js b/node_modules/es5-ext/test/array/#/_compare-by-length.js deleted file mode 100644 index a53d8470f..000000000 --- a/node_modules/es5-ext/test/array/#/_compare-by-length.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - var arr = [4, 5, 6], obj1 = { length: 8 }, obj2 = {}, obj3 = { length: 1 }; - - a.deep([arr, obj1, obj2, obj3].sort(t), [obj2, obj3, arr, obj1]); -}; diff --git a/node_modules/es5-ext/test/array/#/binary-search.js b/node_modules/es5-ext/test/array/#/binary-search.js deleted file mode 100644 index 04dfaefa4..000000000 --- a/node_modules/es5-ext/test/array/#/binary-search.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -var compare = function (value) { - return this - value; -}; - -module.exports = function (t, a) { - var arr; - arr = [2, 5, 5, 8, 34, 67, 98, 345, 678]; - - // Highest, equal match - a(t.call(arr, compare.bind(1)), 0, "All higher"); - a(t.call(arr, compare.bind(679)), arr.length - 1, "All lower"); - a(t.call(arr, compare.bind(4)), 0, "Mid"); - a(t.call(arr, compare.bind(5)), 2, "Match"); - a(t.call(arr, compare.bind(6)), 2, "Above"); -}; diff --git a/node_modules/es5-ext/test/array/#/clear.js b/node_modules/es5-ext/test/array/#/clear.js deleted file mode 100644 index 640cc1926..000000000 --- a/node_modules/es5-ext/test/array/#/clear.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - var arr = [1, 2, {}, 4]; - a(t.call(arr), arr, "Returns same array"); - a.deep(arr, [], "Empties array"); -}; diff --git a/node_modules/es5-ext/test/array/#/compact.js b/node_modules/es5-ext/test/array/#/compact.js deleted file mode 100644 index 05160844e..000000000 --- a/node_modules/es5-ext/test/array/#/compact.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -module.exports = { - "__generic": function (t, a) { - a(t.call(this).length, 3); - }, - "": function (t, a) { - var o, x, y, z; - o = {}; - x = [0, 1, "", null, o, false, undefined, true]; - y = x.slice(0); - - a.not(z = t.call(x), x, "Returns different object"); - a.deep(x, y, "Origin not changed"); - a.deep(z, [0, 1, "", o, false, true], "Result"); - } -}; diff --git a/node_modules/es5-ext/test/array/#/concat/implement.js b/node_modules/es5-ext/test/array/#/concat/implement.js deleted file mode 100644 index c4dc41fa7..000000000 --- a/node_modules/es5-ext/test/array/#/concat/implement.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var isImplemented = require("../../../../array/#/concat/is-implemented"); - -module.exports = function (a) { - a(isImplemented(), true); -}; diff --git a/node_modules/es5-ext/test/array/#/concat/index.js b/node_modules/es5-ext/test/array/#/concat/index.js deleted file mode 100644 index 10bb8f65d..000000000 --- a/node_modules/es5-ext/test/array/#/concat/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./shim"); diff --git a/node_modules/es5-ext/test/array/#/concat/is-implemented.js b/node_modules/es5-ext/test/array/#/concat/is-implemented.js deleted file mode 100644 index 5003e7e93..000000000 --- a/node_modules/es5-ext/test/array/#/concat/is-implemented.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - a(typeof t(), "boolean"); -}; diff --git a/node_modules/es5-ext/test/array/#/concat/shim.js b/node_modules/es5-ext/test/array/#/concat/shim.js deleted file mode 100644 index 30a9b0c62..000000000 --- a/node_modules/es5-ext/test/array/#/concat/shim.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; - -var isConcatSpreadable = require("es6-symbol").isConcatSpreadable - , SubArray = require("../../../../array/_sub-array-dummy-safe"); - -module.exports = function (t, a) { - var arr = [1, 3, 45], x = {}, subArr, subArr2, result; - - a.deep(t.call(arr, "2d", x, ["ere", "fe", x], false, null), - [1, 3, 45, "2d", x, "ere", "fe", x, false, null], "Plain array"); - - subArr = new SubArray("lol", "miszko"); - subArr2 = new SubArray("elo", "fol"); - - result = t.call(subArr, "df", arr, "fef", subArr2, null); - a(result instanceof SubArray, true, "Instance of subclass"); - a.deep(result, ["lol", "miszko", "df", 1, 3, 45, "fef", "elo", "fol", null], - "Spreable by default"); - - SubArray.prototype[isConcatSpreadable] = false; - - result = t.call(subArr, "df", arr, "fef", subArr2, null); - a.deep(result, [subArr, "df", 1, 3, 45, "fef", subArr2, null], "Non spreadable"); - - delete SubArray.prototype[isConcatSpreadable]; -}; diff --git a/node_modules/es5-ext/test/array/#/contains.js b/node_modules/es5-ext/test/array/#/contains.js deleted file mode 100644 index fb0f96ce8..000000000 --- a/node_modules/es5-ext/test/array/#/contains.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; - -module.exports = { - "__generic": function (t, a) { - a(t.call(this, this[1]), true, "Contains"); - a(t.call(this, {}), false, "Does Not contain"); - }, - "": function (t, a) { - var o, x = {}, y = {}; - - o = [1, "raz", x]; - - a(t.call(o, 1), true, "First"); - a(t.call(o, "1"), false, "Type coercion"); - a(t.call(o, "raz"), true, "Primitive"); - a(t.call(o, "foo"), false, "Primitive not found"); - a(t.call(o, x), true, "Object found"); - a(t.call(o, y), false, "Object not found"); - a(t.call(o, 1, 1), false, "Position"); - } -}; diff --git a/node_modules/es5-ext/test/array/#/copy-within/implement.js b/node_modules/es5-ext/test/array/#/copy-within/implement.js deleted file mode 100644 index 87272ac0f..000000000 --- a/node_modules/es5-ext/test/array/#/copy-within/implement.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var isImplemented = require("../../../../array/#/copy-within/is-implemented"); - -module.exports = function (a) { - a(isImplemented(), true); -}; diff --git a/node_modules/es5-ext/test/array/#/copy-within/index.js b/node_modules/es5-ext/test/array/#/copy-within/index.js deleted file mode 100644 index 10bb8f65d..000000000 --- a/node_modules/es5-ext/test/array/#/copy-within/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./shim"); diff --git a/node_modules/es5-ext/test/array/#/copy-within/is-implemented.js b/node_modules/es5-ext/test/array/#/copy-within/is-implemented.js deleted file mode 100644 index 5003e7e93..000000000 --- a/node_modules/es5-ext/test/array/#/copy-within/is-implemented.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - a(typeof t(), "boolean"); -}; diff --git a/node_modules/es5-ext/test/array/#/copy-within/shim.js b/node_modules/es5-ext/test/array/#/copy-within/shim.js deleted file mode 100644 index 03a631fe2..000000000 --- a/node_modules/es5-ext/test/array/#/copy-within/shim.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - var args, x; - - a.h1("2 args"); - x = [1, 2, 3, 4, 5]; - t.call(x, 0, 3); - a.deep(x, [4, 5, 3, 4, 5]); - a.deep(t.call([1, 2, 3, 4, 5], 1, 3), [1, 4, 5, 4, 5]); - a.deep(t.call([1, 2, 3, 4, 5], 1, 2), [1, 3, 4, 5, 5]); - a.deep(t.call([1, 2, 3, 4, 5], 2, 2), [1, 2, 3, 4, 5]); - - a.h1("3 args"); - a.deep(t.call([1, 2, 3, 4, 5], 0, 3, 4), [4, 2, 3, 4, 5]); - a.deep(t.call([1, 2, 3, 4, 5], 1, 3, 4), [1, 4, 3, 4, 5]); - a.deep(t.call([1, 2, 3, 4, 5], 1, 2, 4), [1, 3, 4, 4, 5]); - - a.h1("Negative args"); - a.deep(t.call([1, 2, 3, 4, 5], 0, -2), [4, 5, 3, 4, 5]); - a.deep(t.call([1, 2, 3, 4, 5], 0, -2, -1), [4, 2, 3, 4, 5]); - a.deep(t.call([1, 2, 3, 4, 5], -4, -3, -2), [1, 3, 3, 4, 5]); - a.deep(t.call([1, 2, 3, 4, 5], -4, -3, -1), [1, 3, 4, 4, 5]); - a.deep(t.call([1, 2, 3, 4, 5], -4, -3), [1, 3, 4, 5, 5]); - - a.h1("Array-likes"); - args = { 0: 1, 1: 2, 2: 3, length: 3 }; - a.deep(t.call(args, -2, 0), { 0: 1, 1: 1, 2: 2, length: 3 }); -}; diff --git a/node_modules/es5-ext/test/array/#/diff.js b/node_modules/es5-ext/test/array/#/diff.js deleted file mode 100644 index 397c5ddfe..000000000 --- a/node_modules/es5-ext/test/array/#/diff.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -module.exports = { - "__generic": function (t, a) { - a.deep(t.call(this, this), []); - }, - "": function (t, a) { - var x = {}, y = {}; - - a.deep(t.call([1, "raz", x, 2, "trzy", y], [x, 2, "trzy"]), [1, "raz", y], - "Scope longer"); - a.deep(t.call([1, "raz", x], [x, 2, "trzy", 1, y]), ["raz"], - "Arg longer"); - a.deep(t.call([1, "raz", x], []), [1, "raz", x], "Empty arg"); - a.deep(t.call([], [1, y, "sdfs"]), [], "Empty scope"); - } -}; diff --git a/node_modules/es5-ext/test/array/#/e-index-of.js b/node_modules/es5-ext/test/array/#/e-index-of.js deleted file mode 100644 index 1e42cbd73..000000000 --- a/node_modules/es5-ext/test/array/#/e-index-of.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - var x = {}; - a(t.call([3, "raz", {}, x, {}], x), 3, "Regular"); - a(t.call([3, "raz", NaN, {}, NaN], NaN), 2, "NaN"); - a(t.call([3, "raz", 0, {}, -0], -0), 2, "-0"); - a(t.call([3, "raz", -0, {}, 0], +0), 2, "+0"); - a(t.call([3, "raz", NaN, {}, NaN], NaN, 3), 4, "fromIndex"); - a(t.call([3, "raz", NaN, {}, NaN], NaN, -1), 4, "fromIndex negative #1"); - a(t.call([3, "raz", NaN, {}, NaN], NaN, -2), 4, "fromIndex negative #2"); - a(t.call([3, "raz", NaN, {}, NaN], NaN, -3), 2, "fromIndex negative #3"); -}; diff --git a/node_modules/es5-ext/test/array/#/e-last-index-of.js b/node_modules/es5-ext/test/array/#/e-last-index-of.js deleted file mode 100644 index 2c7fff9fc..000000000 --- a/node_modules/es5-ext/test/array/#/e-last-index-of.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - var x = {}; - a(t.call([3, "raz", {}, x, {}, x], x), 5, "Regular"); - a(t.call([3, "raz", NaN, {}, x], NaN), 2, "NaN"); - a(t.call([3, "raz", 0, {}, -0], -0), 4, "-0"); - a(t.call([3, "raz", -0, {}, 0], +0), 4, "+0"); - a(t.call([3, "raz", NaN, {}, NaN], NaN, 3), 2, "fromIndex"); - a(t.call([3, "raz", NaN, 2, NaN], NaN, -1), 4, "Negative fromIndex #1"); - a(t.call([3, "raz", NaN, 2, NaN], NaN, -2), 2, "Negative fromIndex #2"); -}; diff --git a/node_modules/es5-ext/test/array/#/entries/implement.js b/node_modules/es5-ext/test/array/#/entries/implement.js deleted file mode 100644 index fa16930c3..000000000 --- a/node_modules/es5-ext/test/array/#/entries/implement.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var isImplemented = require("../../../../array/#/entries/is-implemented"); - -module.exports = function (a) { - a(isImplemented(), true); -}; diff --git a/node_modules/es5-ext/test/array/#/entries/index.js b/node_modules/es5-ext/test/array/#/entries/index.js deleted file mode 100644 index 10bb8f65d..000000000 --- a/node_modules/es5-ext/test/array/#/entries/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./shim"); diff --git a/node_modules/es5-ext/test/array/#/entries/is-implemented.js b/node_modules/es5-ext/test/array/#/entries/is-implemented.js deleted file mode 100644 index 5003e7e93..000000000 --- a/node_modules/es5-ext/test/array/#/entries/is-implemented.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - a(typeof t(), "boolean"); -}; diff --git a/node_modules/es5-ext/test/array/#/entries/shim.js b/node_modules/es5-ext/test/array/#/entries/shim.js deleted file mode 100644 index 87ac25a98..000000000 --- a/node_modules/es5-ext/test/array/#/entries/shim.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -exports.__generic = function (t, a) { - var iterator = t.call(this); - a.deep(iterator.next(), { value: [0, "1"], done: false }); - a.deep(iterator.next(), { value: [1, "2"], done: false }); - a.deep(iterator.next(), { value: [2, "3"], done: false }); - a.deep(iterator.next(), { value: undefined, done: true }); -}; diff --git a/node_modules/es5-ext/test/array/#/exclusion.js b/node_modules/es5-ext/test/array/#/exclusion.js deleted file mode 100644 index 827c037a3..000000000 --- a/node_modules/es5-ext/test/array/#/exclusion.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -module.exports = { - "__generic": function (t, a) { - var x = {}; - a.deep(t.call(this, this, [this[0], this[2], x]), [x]); - }, - "": function (t, a) { - var x = {}, y = {}; - - a.deep(t.call([x, y]), [x, y], "No arguments"); - a.deep(t.call([x, 1], [], []), [x, 1], "Empty arguments"); - a.deep(t.call([1, "raz", x], [2, "raz", y], [2, "raz", x]), [1, y]); - } -}; diff --git a/node_modules/es5-ext/test/array/#/fill/implement.js b/node_modules/es5-ext/test/array/#/fill/implement.js deleted file mode 100644 index fe806a6bf..000000000 --- a/node_modules/es5-ext/test/array/#/fill/implement.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var isImplemented = require("../../../../array/#/fill/is-implemented"); - -module.exports = function (a) { - a(isImplemented(), true); -}; diff --git a/node_modules/es5-ext/test/array/#/fill/index.js b/node_modules/es5-ext/test/array/#/fill/index.js deleted file mode 100644 index 10bb8f65d..000000000 --- a/node_modules/es5-ext/test/array/#/fill/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./shim"); diff --git a/node_modules/es5-ext/test/array/#/fill/is-implemented.js b/node_modules/es5-ext/test/array/#/fill/is-implemented.js deleted file mode 100644 index 5003e7e93..000000000 --- a/node_modules/es5-ext/test/array/#/fill/is-implemented.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - a(typeof t(), "boolean"); -}; diff --git a/node_modules/es5-ext/test/array/#/fill/shim.js b/node_modules/es5-ext/test/array/#/fill/shim.js deleted file mode 100644 index c752e10b8..000000000 --- a/node_modules/es5-ext/test/array/#/fill/shim.js +++ /dev/null @@ -1,18 +0,0 @@ -// Taken from https://github.com/paulmillr/es6-shim/blob/master/test/array.js - -"use strict"; - -module.exports = function (t, a) { - var x; - - x = [1, 2, 3, 4, 5, 6]; - a(t.call(x, -1), x, "Returns self object"); - a.deep(x, [-1, -1, -1, -1, -1, -1], "Value"); - - a.deep(t.call([1, 2, 3, 4, 5, 6], -1, 3), [1, 2, 3, -1, -1, -1], - "Positive start"); - a.deep(t.call([1, 2, 3, 4, 5, 6], -1, -3), [1, 2, 3, -1, -1, -1], - "Negative start"); - a.deep(t.call([1, 2, 3, 4, 5, 6], -1, 9), [1, 2, 3, 4, 5, 6], - "Large start"); -}; diff --git a/node_modules/es5-ext/test/array/#/filter/implement.js b/node_modules/es5-ext/test/array/#/filter/implement.js deleted file mode 100644 index cac92c83a..000000000 --- a/node_modules/es5-ext/test/array/#/filter/implement.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var isImplemented = require("../../../../array/#/filter/is-implemented"); - -module.exports = function (a) { - a(isImplemented(), true); -}; diff --git a/node_modules/es5-ext/test/array/#/filter/index.js b/node_modules/es5-ext/test/array/#/filter/index.js deleted file mode 100644 index 10bb8f65d..000000000 --- a/node_modules/es5-ext/test/array/#/filter/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./shim"); diff --git a/node_modules/es5-ext/test/array/#/filter/is-implemented.js b/node_modules/es5-ext/test/array/#/filter/is-implemented.js deleted file mode 100644 index 5003e7e93..000000000 --- a/node_modules/es5-ext/test/array/#/filter/is-implemented.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - a(typeof t(), "boolean"); -}; diff --git a/node_modules/es5-ext/test/array/#/filter/shim.js b/node_modules/es5-ext/test/array/#/filter/shim.js deleted file mode 100644 index e20a6511f..000000000 --- a/node_modules/es5-ext/test/array/#/filter/shim.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -var SubArray = require("../../../../array/_sub-array-dummy-safe"); - -module.exports = function (t, a) { - var arr, x = {}, subArr, result; - - arr = ["foo", undefined, 0, "2d", false, x, null]; - - a.deep(t.call(arr, Boolean), ["foo", "2d", x], "Plain array"); - - subArr = new SubArray("foo", undefined, 0, "2d", false, x, null); - - result = t.call(subArr, Boolean); - a(result instanceof SubArray, true, "Instance of subclass"); - a.deep(result, ["foo", "2d", x], "Result of subclass"); -}; diff --git a/node_modules/es5-ext/test/array/#/find-index/implement.js b/node_modules/es5-ext/test/array/#/find-index/implement.js deleted file mode 100644 index 341bedef4..000000000 --- a/node_modules/es5-ext/test/array/#/find-index/implement.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var isImplemented = require("../../../../array/#/find-index/is-implemented"); - -module.exports = function (a) { - a(isImplemented(), true); -}; diff --git a/node_modules/es5-ext/test/array/#/find-index/index.js b/node_modules/es5-ext/test/array/#/find-index/index.js deleted file mode 100644 index 10bb8f65d..000000000 --- a/node_modules/es5-ext/test/array/#/find-index/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./shim"); diff --git a/node_modules/es5-ext/test/array/#/find-index/is-implemented.js b/node_modules/es5-ext/test/array/#/find-index/is-implemented.js deleted file mode 100644 index 5003e7e93..000000000 --- a/node_modules/es5-ext/test/array/#/find-index/is-implemented.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - a(typeof t(), "boolean"); -}; diff --git a/node_modules/es5-ext/test/array/#/find-index/shim.js b/node_modules/es5-ext/test/array/#/find-index/shim.js deleted file mode 100644 index 0a6fe1135..000000000 --- a/node_modules/es5-ext/test/array/#/find-index/shim.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -exports.__generic = function (t, a) { - var count = 0, o = {}, self = Object(this); - a(t.call(self, function (value, i, scope) { - a(value, this[i], "Value"); - a(i, count++, "Index"); - a(scope, this, "Scope"); - }, self), -1, "Falsy result"); - a(count, 3); - - count = -1; - a(t.call(this, function () { - return ++count ? o : null; - }, this), 1, "Truthy result"); - a(count, 1); -}; diff --git a/node_modules/es5-ext/test/array/#/find/implement.js b/node_modules/es5-ext/test/array/#/find/implement.js deleted file mode 100644 index 9333b25fb..000000000 --- a/node_modules/es5-ext/test/array/#/find/implement.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var isImplemented = require("../../../../array/#/find/is-implemented"); - -module.exports = function (a) { - a(isImplemented(), true); -}; diff --git a/node_modules/es5-ext/test/array/#/find/index.js b/node_modules/es5-ext/test/array/#/find/index.js deleted file mode 100644 index 10bb8f65d..000000000 --- a/node_modules/es5-ext/test/array/#/find/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./shim"); diff --git a/node_modules/es5-ext/test/array/#/find/is-implemented.js b/node_modules/es5-ext/test/array/#/find/is-implemented.js deleted file mode 100644 index 5003e7e93..000000000 --- a/node_modules/es5-ext/test/array/#/find/is-implemented.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - a(typeof t(), "boolean"); -}; diff --git a/node_modules/es5-ext/test/array/#/find/shim.js b/node_modules/es5-ext/test/array/#/find/shim.js deleted file mode 100644 index b8fd9f060..000000000 --- a/node_modules/es5-ext/test/array/#/find/shim.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -exports.__generic = function (t, a) { - var count = 0, o = {}, self = Object(this); - a(t.call(self, function (value, i, scope) { - a(value, this[i], "Value"); - a(i, count++, "Index"); - a(scope, this, "Scope"); - }, self), undefined, "Falsy result"); - a(count, 3); - - count = -1; - a(t.call(this, function () { - return ++count ? o : null; - }, this), this[1], "Truthy result"); - a(count, 1); -}; diff --git a/node_modules/es5-ext/test/array/#/first-index.js b/node_modules/es5-ext/test/array/#/first-index.js deleted file mode 100644 index af3388b55..000000000 --- a/node_modules/es5-ext/test/array/#/first-index.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - var x; - a(t.call([]), null, "Empty"); - a(t.call([null]), 0, "One value"); - a(t.call([1, 2, 3]), 0, "Many values"); - a(t.call(new Array(1000)), null, "Sparse empty"); - x = []; - x[883] = undefined; - x[890] = null; - a(t.call(x), 883, "Manual sparse, distant value"); - x = new Array(1000); - x[657] = undefined; - x[700] = null; - a(t.call(x), 657, "Sparse, distant value"); -}; diff --git a/node_modules/es5-ext/test/array/#/first.js b/node_modules/es5-ext/test/array/#/first.js deleted file mode 100644 index 5e9c1ae84..000000000 --- a/node_modules/es5-ext/test/array/#/first.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; - -exports.__generic = function (t, a) { - a(t.call(this), this[0]); -}; -exports[""] = function (t, a) { - var x; - a(t.call([]), undefined, "Empty"); - a(t.call(new Array(234), undefined, "Sparse empty")); - x = new Array(2342); - x[434] = {}; - a(t.call(x), x[434], "Sparse"); -}; diff --git a/node_modules/es5-ext/test/array/#/flatten.js b/node_modules/es5-ext/test/array/#/flatten.js deleted file mode 100644 index c1234c3ab..000000000 --- a/node_modules/es5-ext/test/array/#/flatten.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -var o = [1, 2, [3, 4, [5, 6], 7, 8], 9, 10, [11, 12, [13, 14]], 15]; - -module.exports = { - "__generic": function (t, a) { - a(t.call(this).length, 3); - }, - "Nested Arrays": function (t, a) { - var result = t.call(o); - a.not(o, result); - a.deep(result, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]); - } -}; diff --git a/node_modules/es5-ext/test/array/#/for-each-right.js b/node_modules/es5-ext/test/array/#/for-each-right.js deleted file mode 100644 index 109101f8b..000000000 --- a/node_modules/es5-ext/test/array/#/for-each-right.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; - -module.exports = { - "__generic": function (t, a) { - var count = 0, first, last, x, icount = this.length; - t.call(this, function (item, index, col) { - ++count; - if (!first) { - first = item; - } - last = item; - x = col; - a(index, --icount, "Index"); - }); - a(count, this.length, "Iterated"); - a(first, this[this.length - 1], "First is last"); - a(last, this[0], "Last is first"); - a.deep(x, Object(this), "Collection as third argument"); // Jslint: skip - }, - "": function (t, a) { - var x = {}, y, count; - t.call( - [1], - function () { - y = this; - }, - x - ); - a(y, x, "Scope"); - y = 0; - t.call([3, 4, 4], function (a, i) { - y += i; - }); - a(y, 3, "Indexes"); - - x = [1, 3]; - x[5] = "x"; - y = 0; - count = 0; - t.call(x, function (a, i) { - ++count; - y += i; - }); - a(y, 6, "Misssing Indexes"); - a(count, 3, "Misssing Indexes, count"); - } -}; diff --git a/node_modules/es5-ext/test/array/#/group.js b/node_modules/es5-ext/test/array/#/group.js deleted file mode 100644 index 12667de98..000000000 --- a/node_modules/es5-ext/test/array/#/group.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; - -module.exports = { - "__generic": function (t, a) { - var count = 0, self; - - self = Object(this); - a.deep(t.call(self, function (v, i, scope) { - a(v, this[i], "Value"); - a(i, count++, "Index"); - a(scope, this, "Scope"); - return i; - }, self), { 0: [this[0]], 1: [this[1]], 2: [this[2]] }); - }, - "": function (t, a) { - var r; - r = t.call([2, 3, 3, 4, 5, 6, 7, 7, 23, 45, 34, 56], - function (v) { - return v % 2 ? "odd" : "even"; - }); - a.deep(r.odd, [3, 3, 5, 7, 7, 23, 45]); - a.deep(r.even, [2, 4, 6, 34, 56]); - } -}; diff --git a/node_modules/es5-ext/test/array/#/indexes-of.js b/node_modules/es5-ext/test/array/#/indexes-of.js deleted file mode 100644 index 1463417d4..000000000 --- a/node_modules/es5-ext/test/array/#/indexes-of.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -module.exports = { - "__generic": function (t, a) { - a.deep(t.call(this, this[1]), [1]); - }, - "": function (t, a) { - var x = {}; - a.deep(t.call([1, 3, 5, 3, 5], 6), [], "No result"); - a.deep(t.call([1, 3, 5, 1, 3, 5, 1], 1), [0, 3, 6], "Some results"); - a.deep(t.call([], x), [], "Empty array"); - a.deep(t.call([x, 3, {}, x, 3, 5, x], x), [0, 3, 6], "Search for object"); - } -}; diff --git a/node_modules/es5-ext/test/array/#/intersection.js b/node_modules/es5-ext/test/array/#/intersection.js deleted file mode 100644 index bb1097d1e..000000000 --- a/node_modules/es5-ext/test/array/#/intersection.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; - -var toArray = require("../../../array/to-array"); - -module.exports = { - "__generic": function (t, a) { - a.deep(t.call(this, this, this), toArray(this)); - }, - "": function (t, a) { - var x = {}, y = {}, p, r; - a.deep(t.call([], [2, 3, 4]), [], "Empty #1"); - a.deep(t.call([2, 3, 4], []), [], "Empty #2"); - a.deep(t.call([2, 3, x], [y, 5, 7]), [], "Different"); - p = t.call([3, 5, "raz", {}, "dwa", x], [1, 3, "raz", "dwa", "trzy", x, {}], - [3, "raz", x, 65]); - r = [3, "raz", x]; - p.sort(); - r.sort(); - a.deep(p, r, "Same parts"); - a.deep(t.call(r, r), r, "Same"); - a.deep(t.call([1, 2, x, 4, 5, y, 7], [7, y, 5, 4, x, 2, 1]), - [1, 2, x, 4, 5, y, 7], "Long reverse same"); - } -}; diff --git a/node_modules/es5-ext/test/array/#/is-copy.js b/node_modules/es5-ext/test/array/#/is-copy.js deleted file mode 100644 index b090c2acd..000000000 --- a/node_modules/es5-ext/test/array/#/is-copy.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - var x = {}; - a(t.call([], []), true, "Empty"); - a(t.call([], {}), true, "Empty lists"); - a(t.call([1, x, "raz"], [1, x, "raz"]), true, "Same"); - a(t.call([1, x, "raz"], { 0: 1, 1: x, 2: "raz", length: 3 }), true, - "Same lists"); - a(t.call([1, x, "raz"], [x, 1, "raz"]), false, "Diff order"); - a(t.call([1, x], [1, x, "raz"]), false, "Diff length #1"); - a(t.call([1, x, "raz"], [1, x]), false, "Diff length #2"); -}; diff --git a/node_modules/es5-ext/test/array/#/is-empty.js b/node_modules/es5-ext/test/array/#/is-empty.js deleted file mode 100644 index 1e1c097b3..000000000 --- a/node_modules/es5-ext/test/array/#/is-empty.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - var x = {}; - a(t.call([]), true, "Empty"); - a(t.call({ length: 0 }), true, "Empty lists"); - a(t.call([1, x, "raz"]), false, "Non empty"); -}; diff --git a/node_modules/es5-ext/test/array/#/is-uniq.js b/node_modules/es5-ext/test/array/#/is-uniq.js deleted file mode 100644 index ab531ac51..000000000 --- a/node_modules/es5-ext/test/array/#/is-uniq.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - var x = {}; - a(t.call([]), true, "Empty"); - a(t.call({}), true, "Empty lists"); - a(t.call([1, x, "raz"]), true, "Uniq"); - a(t.call([1, x, 1, "raz"]), false, "Not Uniq: primitive"); - a(t.call([1, x, "1", "raz"]), true, "Uniq: primitive"); - a(t.call([1, x, 1, {}, "raz"]), false, "Not Uniq: Obj"); -}; diff --git a/node_modules/es5-ext/test/array/#/keys/implement.js b/node_modules/es5-ext/test/array/#/keys/implement.js deleted file mode 100644 index cc1f9316a..000000000 --- a/node_modules/es5-ext/test/array/#/keys/implement.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var isImplemented = require("../../../../array/#/keys/is-implemented"); - -module.exports = function (a) { - a(isImplemented(), true); -}; diff --git a/node_modules/es5-ext/test/array/#/keys/index.js b/node_modules/es5-ext/test/array/#/keys/index.js deleted file mode 100644 index 10bb8f65d..000000000 --- a/node_modules/es5-ext/test/array/#/keys/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./shim"); diff --git a/node_modules/es5-ext/test/array/#/keys/is-implemented.js b/node_modules/es5-ext/test/array/#/keys/is-implemented.js deleted file mode 100644 index 5003e7e93..000000000 --- a/node_modules/es5-ext/test/array/#/keys/is-implemented.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - a(typeof t(), "boolean"); -}; diff --git a/node_modules/es5-ext/test/array/#/keys/shim.js b/node_modules/es5-ext/test/array/#/keys/shim.js deleted file mode 100644 index 9be9a8f09..000000000 --- a/node_modules/es5-ext/test/array/#/keys/shim.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -exports.__generic = function (t, a) { - var iterator = t.call(this); - a.deep(iterator.next(), { value: 0, done: false }); - a.deep(iterator.next(), { value: 1, done: false }); - a.deep(iterator.next(), { value: 2, done: false }); - a.deep(iterator.next(), { value: undefined, done: true }); -}; diff --git a/node_modules/es5-ext/test/array/#/last-index.js b/node_modules/es5-ext/test/array/#/last-index.js deleted file mode 100644 index e66d16f14..000000000 --- a/node_modules/es5-ext/test/array/#/last-index.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - var x; - a(t.call([]), null, "Empty"); - a(t.call([null]), 0, "One value"); - a(t.call([1, 2, 3]), 2, "Many values"); - a(t.call(new Array(1000)), null, "Sparse empty"); - x = []; - x[883] = null; - x[890] = undefined; - a(t.call(x), 890, "Manual sparse, distant value"); - x = new Array(1000); - x[657] = null; - x[700] = undefined; - a(t.call(x), 700, "Sparse, distant value"); -}; diff --git a/node_modules/es5-ext/test/array/#/last.js b/node_modules/es5-ext/test/array/#/last.js deleted file mode 100644 index 6ca5d0539..000000000 --- a/node_modules/es5-ext/test/array/#/last.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -exports.__generic = function (t, a) { - a(t.call(this), this[this.length - 1]); -}; - -exports[""] = function (t, a) { - var x; - a(t.call([]), undefined, "Empty"); - a(t.call(new Array(234), undefined, "Sparse empty")); - x = new Array(2342); - x[434] = {}; - x[450] = {}; - a(t.call(x), x[450], "Sparse"); -}; diff --git a/node_modules/es5-ext/test/array/#/map/implement.js b/node_modules/es5-ext/test/array/#/map/implement.js deleted file mode 100644 index 26bb41158..000000000 --- a/node_modules/es5-ext/test/array/#/map/implement.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var isImplemented = require("../../../../array/#/map/is-implemented"); - -module.exports = function (a) { - a(isImplemented(), true); -}; diff --git a/node_modules/es5-ext/test/array/#/map/index.js b/node_modules/es5-ext/test/array/#/map/index.js deleted file mode 100644 index 10bb8f65d..000000000 --- a/node_modules/es5-ext/test/array/#/map/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./shim"); diff --git a/node_modules/es5-ext/test/array/#/map/is-implemented.js b/node_modules/es5-ext/test/array/#/map/is-implemented.js deleted file mode 100644 index 5003e7e93..000000000 --- a/node_modules/es5-ext/test/array/#/map/is-implemented.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - a(typeof t(), "boolean"); -}; diff --git a/node_modules/es5-ext/test/array/#/map/shim.js b/node_modules/es5-ext/test/array/#/map/shim.js deleted file mode 100644 index 02a5af250..000000000 --- a/node_modules/es5-ext/test/array/#/map/shim.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; - -var SubArray = require("../../../../array/_sub-array-dummy-safe"); - -module.exports = function (t, a) { - var arr, x = {}, subArr, result; - - arr = ["foo", undefined, 0, "2d", false, x, null]; - - a.deep(t.call(arr, Boolean), [true, false, false, true, false, true, false], - "Plain array"); - - subArr = new SubArray("foo", undefined, 0, "2d", false, x, null); - - result = t.call(subArr, Boolean); - a(result instanceof SubArray, true, "Instance of subclass"); - a.deep(result, [true, false, false, true, false, true, false], - "Result of subclass"); -}; diff --git a/node_modules/es5-ext/test/array/#/remove.js b/node_modules/es5-ext/test/array/#/remove.js deleted file mode 100644 index d67457ea9..000000000 --- a/node_modules/es5-ext/test/array/#/remove.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - var y = {}, z = {}, x = [9, z, 5, y, "foo"]; - t.call(x, y); - a.deep(x, [9, z, 5, "foo"]); - t.call(x, {}); - a.deep(x, [9, z, 5, "foo"], "Not existing"); - t.call(x, 5); - a.deep(x, [9, z, "foo"], "Primitive"); - x = [9, z, 5, y, "foo"]; - t.call(x, z, 5, "foo"); - a.deep(x, [9, y], "More than one argument"); -}; diff --git a/node_modules/es5-ext/test/array/#/separate.js b/node_modules/es5-ext/test/array/#/separate.js deleted file mode 100644 index 9792637f3..000000000 --- a/node_modules/es5-ext/test/array/#/separate.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - var x = [], y = {}, z = {}; - a.deep(t.call(x, y), [], "Empty"); - a.not(t.call(x), x, "Returns copy"); - a.deep(t.call([1], y), [1], "One"); - a.deep(t.call([1, "raz"], y), [1, y, "raz"], "One"); - a.deep(t.call([1, "raz", x], y), [1, y, "raz", y, x], "More"); - x = new Array(1000); - x[23] = 2; - x[3453] = "raz"; - x[500] = z; - a.deep(t.call(x, y), [2, y, z, y, "raz"], "Sparse"); -}; diff --git a/node_modules/es5-ext/test/array/#/slice/implement.js b/node_modules/es5-ext/test/array/#/slice/implement.js deleted file mode 100644 index 8c9b9be63..000000000 --- a/node_modules/es5-ext/test/array/#/slice/implement.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var isImplemented = require("../../../../array/#/slice/is-implemented"); - -module.exports = function (a) { - a(isImplemented(), true); -}; diff --git a/node_modules/es5-ext/test/array/#/slice/index.js b/node_modules/es5-ext/test/array/#/slice/index.js deleted file mode 100644 index 10bb8f65d..000000000 --- a/node_modules/es5-ext/test/array/#/slice/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./shim"); diff --git a/node_modules/es5-ext/test/array/#/slice/is-implemented.js b/node_modules/es5-ext/test/array/#/slice/is-implemented.js deleted file mode 100644 index 5003e7e93..000000000 --- a/node_modules/es5-ext/test/array/#/slice/is-implemented.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - a(typeof t(), "boolean"); -}; diff --git a/node_modules/es5-ext/test/array/#/slice/shim.js b/node_modules/es5-ext/test/array/#/slice/shim.js deleted file mode 100644 index f09ad13cf..000000000 --- a/node_modules/es5-ext/test/array/#/slice/shim.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -var SubArray = require("../../../../array/_sub-array-dummy-safe"); - -module.exports = function (t, a) { - var arr, x = {}, subArr, result; - - arr = ["foo", undefined, 0, "2d", false, x, null]; - - a.deep(t.call(arr, 2, 4), [0, "2d"], "Plain array: result"); - - subArr = new SubArray("foo", undefined, 0, "2d", false, x, null); - - result = t.call(subArr, 2, 4); - a(result instanceof SubArray, true, "Instance of subclass"); - a.deep(result, [0, "2d"], "Subclass: result"); -}; diff --git a/node_modules/es5-ext/test/array/#/some-right.js b/node_modules/es5-ext/test/array/#/some-right.js deleted file mode 100644 index 1e0f407e6..000000000 --- a/node_modules/es5-ext/test/array/#/some-right.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -module.exports = { - "__generic": function (t, a) { - var count = 0, first, last, x, icount = this.length; - t.call(this, function (item, index, col) { - ++count; - if (!first) { - first = item; - } - last = item; - x = col; - a(index, --icount, "Index"); - }); - a(count, this.length, "Iterated"); - a(first, this[this.length - 1], "First is last"); - a(last, this[0], "Last is first"); - a.deep(x, Object(this), "Collection as third argument"); // Jslint: skip - }, - "": function (t, a) { - var x = {}, y, count; - t.call( - [1], - function () { - y = this; - }, - x - ); - a(y, x, "Scope"); - y = 0; - t.call([3, 4, 4], function (a, i) { - y += i; - }); - a(y, 3, "Indexes"); - - x = [1, 3]; - x[5] = "x"; - y = 0; - count = 0; - a( - t.call(x, function (a, i) { - ++count; - y += i; - }), - false, - "Return" - ); - a(y, 6, "Misssing Indexes"); - a(count, 3, "Misssing Indexes, count"); - - count = 0; - a( - t.call([-2, -3, -4, 2, -5], function (item) { - ++count; - return item > 0; - }), - true, - "Return" - ); - a(count, 2, "Break after true is returned"); - } -}; diff --git a/node_modules/es5-ext/test/array/#/splice/implement.js b/node_modules/es5-ext/test/array/#/splice/implement.js deleted file mode 100644 index f09257a43..000000000 --- a/node_modules/es5-ext/test/array/#/splice/implement.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var isImplemented = require("../../../../array/#/splice/is-implemented"); - -module.exports = function (a) { - a(isImplemented(), true); -}; diff --git a/node_modules/es5-ext/test/array/#/splice/index.js b/node_modules/es5-ext/test/array/#/splice/index.js deleted file mode 100644 index 10bb8f65d..000000000 --- a/node_modules/es5-ext/test/array/#/splice/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./shim"); diff --git a/node_modules/es5-ext/test/array/#/splice/is-implemented.js b/node_modules/es5-ext/test/array/#/splice/is-implemented.js deleted file mode 100644 index 5003e7e93..000000000 --- a/node_modules/es5-ext/test/array/#/splice/is-implemented.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - a(typeof t(), "boolean"); -}; diff --git a/node_modules/es5-ext/test/array/#/splice/shim.js b/node_modules/es5-ext/test/array/#/splice/shim.js deleted file mode 100644 index 480200784..000000000 --- a/node_modules/es5-ext/test/array/#/splice/shim.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; - -var SubArray = require("../../../../array/_sub-array-dummy-safe"); - -module.exports = function (t, a) { - var arr, x = {}, subArr, result; - - arr = ["foo", undefined, 0, "2d", false, x, null]; - - a.deep(t.call(arr, 2, 2, "bar"), [0, "2d"], "Plain array: result"); - a.deep(arr, ["foo", undefined, "bar", false, x, null], "Plain array: change"); - - subArr = new SubArray("foo", undefined, 0, "2d", false, x, null); - - result = t.call(subArr, 2, 2, "bar"); - a(result instanceof SubArray, true, "Instance of subclass"); - a.deep(result, [0, "2d"], "Subclass: result"); - a.deep(subArr, ["foo", undefined, "bar", false, x, null], "Subclass: change"); -}; diff --git a/node_modules/es5-ext/test/array/#/uniq.js b/node_modules/es5-ext/test/array/#/uniq.js deleted file mode 100644 index c7223b26e..000000000 --- a/node_modules/es5-ext/test/array/#/uniq.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -module.exports = { - "__generic": function (t, a) { - a(t.call(this).length, 3); - }, - "": function (t, a) { - var o, x = {}, y = {}, z = {}, w; - o = [1, 2, x, 3, 1, "raz", "1", y, x, "trzy", z, "raz"]; - - a.not(w = t.call(o), o, "Returns different object"); - a.deep(w, [1, 2, x, 3, "raz", "1", y, "trzy", z], "Result"); - } -}; diff --git a/node_modules/es5-ext/test/array/#/values/implement.js b/node_modules/es5-ext/test/array/#/values/implement.js deleted file mode 100644 index 4ba7613af..000000000 --- a/node_modules/es5-ext/test/array/#/values/implement.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var isImplemented = require("../../../../array/#/values/is-implemented"); - -module.exports = function (a) { - a(isImplemented(), true); -}; diff --git a/node_modules/es5-ext/test/array/#/values/index.js b/node_modules/es5-ext/test/array/#/values/index.js deleted file mode 100644 index 10bb8f65d..000000000 --- a/node_modules/es5-ext/test/array/#/values/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./shim"); diff --git a/node_modules/es5-ext/test/array/#/values/is-implemented.js b/node_modules/es5-ext/test/array/#/values/is-implemented.js deleted file mode 100644 index 5003e7e93..000000000 --- a/node_modules/es5-ext/test/array/#/values/is-implemented.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - a(typeof t(), "boolean"); -}; diff --git a/node_modules/es5-ext/test/array/#/values/shim.js b/node_modules/es5-ext/test/array/#/values/shim.js deleted file mode 100644 index 71b71d58a..000000000 --- a/node_modules/es5-ext/test/array/#/values/shim.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -exports.__generic = function (t, a) { - var iterator = t.call(this); - a.deep(iterator.next(), { value: "1", done: false }); - a.deep(iterator.next(), { value: "2", done: false }); - a.deep(iterator.next(), { value: "3", done: false }); - a.deep(iterator.next(), { value: undefined, done: true }); -}; diff --git a/node_modules/es5-ext/test/array/__scopes.js b/node_modules/es5-ext/test/array/__scopes.js deleted file mode 100644 index bf47389f7..000000000 --- a/node_modules/es5-ext/test/array/__scopes.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -exports.Array = ["1", "2", "3"]; - -exports.Arguments = (function () { - return arguments; -}("1", "2", "3")); - -exports.String = "123"; - -exports.Object = { 0: "1", 1: "2", 2: "3", 3: "4", length: 3 }; diff --git a/node_modules/es5-ext/test/array/_is-extensible.js b/node_modules/es5-ext/test/array/_is-extensible.js deleted file mode 100644 index 87881863b..000000000 --- a/node_modules/es5-ext/test/array/_is-extensible.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - a(typeof t, "boolean"); -}; diff --git a/node_modules/es5-ext/test/array/_sub-array-dummy-safe.js b/node_modules/es5-ext/test/array/_sub-array-dummy-safe.js deleted file mode 100644 index 6b42f4d15..000000000 --- a/node_modules/es5-ext/test/array/_sub-array-dummy-safe.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var isArray = Array.isArray; - -module.exports = function (t) { - t(t === null || isArray(t.prototype), true); -}; diff --git a/node_modules/es5-ext/test/array/_sub-array-dummy.js b/node_modules/es5-ext/test/array/_sub-array-dummy.js deleted file mode 100644 index 6b42f4d15..000000000 --- a/node_modules/es5-ext/test/array/_sub-array-dummy.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var isArray = Array.isArray; - -module.exports = function (t) { - t(t === null || isArray(t.prototype), true); -}; diff --git a/node_modules/es5-ext/test/array/from/implement.js b/node_modules/es5-ext/test/array/from/implement.js deleted file mode 100644 index 2ed3788f9..000000000 --- a/node_modules/es5-ext/test/array/from/implement.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var isImplemented = require("../../../array/from/is-implemented"); - -module.exports = function (a) { - a(isImplemented(), true); -}; diff --git a/node_modules/es5-ext/test/array/from/index.js b/node_modules/es5-ext/test/array/from/index.js deleted file mode 100644 index 10bb8f65d..000000000 --- a/node_modules/es5-ext/test/array/from/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./shim"); diff --git a/node_modules/es5-ext/test/array/from/is-implemented.js b/node_modules/es5-ext/test/array/from/is-implemented.js deleted file mode 100644 index 5003e7e93..000000000 --- a/node_modules/es5-ext/test/array/from/is-implemented.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - a(typeof t(), "boolean"); -}; diff --git a/node_modules/es5-ext/test/array/from/shim.js b/node_modules/es5-ext/test/array/from/shim.js deleted file mode 100644 index 17974c4be..000000000 --- a/node_modules/es5-ext/test/array/from/shim.js +++ /dev/null @@ -1,138 +0,0 @@ -// Some tests taken from: https://github.com/mathiasbynens/Array.from/blob/master/tests/tests.js - -"use strict"; - -module.exports = function (t, a) { - var o = [1, 2, 3], MyType; - a.not(t(o), o, "Array"); - a.deep(t(o), o, "Array: same content"); - a.deep(t("12r3v"), ["1", "2", "r", "3", "v"], "String"); - a.deep( - t( - (function () { - return arguments; - })(3, o, "raz") - ), - [3, o, "raz"], - "Arguments" - ); - a.deep( - t( - (function () { - return arguments; - })(3) - ), - [3], - "Arguments with one numeric value" - ); - - a.deep(t({ 0: "raz", 1: "dwa", length: 2 }), ["raz", "dwa"], "Other"); - - a.deep( - t( - o, - function (val) { - return (val + 2) * 10; - }, - 10 - ), - [30, 40, 50], - "Mapping" - ); - - a.throws( - function () { - t(); - }, - TypeError, - "Undefined" - ); - a.deep(t(3), [], "Primitive"); - - a(t.length, 1, "Length"); - a.deep(t({ length: 0 }), [], "No values Array-like"); - a.deep(t({ length: -1 }), [], "Invalid length Array-like"); - a.deep(t({ length: -Infinity }), [], "Invalid length Array-like #2"); - a.throws( - function () { - t(undefined); - }, - TypeError, - "Undefined" - ); - a.throws( - function () { - t(null); - }, - TypeError, - "Null" - ); - a.deep(t(false), [], "Boolean"); - a.deep(t(-Infinity), [], "Inifity"); - a.deep(t(-0), [], "-0"); - a.deep(t(+0), [], "+0"); - a.deep(t(1), [], "1"); - a.deep(t(Number(Infinity)), [], "+Infinity"); - a.deep(t({}), [], "Plain object"); - a.deep(t({ length: 1 }), [undefined], "Sparse array-like"); - a.deep( - t({ 0: "a", 1: "b", length: 2 }, function (x) { - return x + x; - }), - ["aa", "bb"], - "Map" - ); - a.deep( - t( - { 0: "a", 1: "b", length: 2 }, - function () { - return String(this); - }, - undefined - ), - ["undefined", "undefined"], - "Map context" - ); - a.deep( - t( - { 0: "a", 1: "b", length: 2 }, - function () { - return String(this); - }, - "x" - ), - ["x", "x"], - "Map primitive context" - ); - a.throws( - function () { - t({}, "foo", "x"); - }, - TypeError, - "Non callable for map" - ); - - a.deep(t({ length: 1, 0: "a" }), ["a"], "Null context"); - - a(t({ __proto__: { 0: "abc", length: 1 } })[0], "abc", "Values on prototype"); - - a.throws( - function () { - t.call(function () { - return Object.freeze({}); - }, {}); - }, - TypeError, - "Contructor producing freezed objects" - ); - - // Ensure no setters are called for the indexes - // Ensure no setters are called for the indexes - MyType = function () {}; - Object.defineProperty(MyType.prototype, "0", { - set: function (x) { - throw new Error("Setter called: " + x); - } - }); - a.deep(t.call(MyType, { 0: "abc", length: 1 }), { 0: "abc", length: 1 }, "Defined not set"); -}; diff --git a/node_modules/es5-ext/test/array/generate.js b/node_modules/es5-ext/test/array/generate.js deleted file mode 100644 index efd5f7c8c..000000000 --- a/node_modules/es5-ext/test/array/generate.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - var x = {}, y = {}; - a.deep(t(3), [undefined, undefined, undefined], "Just length"); - a.deep(t(0, "x"), [], "No repeat"); - a.deep(t(1, x, y), [x], "Arguments length larger than repeat number"); - a.deep(t(3, x), [x, x, x], "Single argument"); - a.deep(t(5, x, y), [x, y, x, y, x], "Many arguments"); -}; diff --git a/node_modules/es5-ext/test/array/is-plain-array.js b/node_modules/es5-ext/test/array/is-plain-array.js deleted file mode 100644 index 2cfd50d3b..000000000 --- a/node_modules/es5-ext/test/array/is-plain-array.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; - -var SubArray = require("../../array/_sub-array-dummy-safe"); - -module.exports = function (t, a) { - var arr = [1, 2, 3]; - a(t(arr), true, "Array"); - a(t(null), false, "Null"); - a(t(), false, "Undefined"); - a(t("234"), false, "String"); - a(t(23), false, "Number"); - a(t({}), false, "Plain object"); - a(t({ length: 1, 0: "raz" }), false, "Array-like"); - a(t(Object.create(arr)), false, "Array extension"); - if (!SubArray) return; - a(t(new SubArray(23)), false, "Subclass instance"); - a(t(Array.prototype), false, "Array.prototype"); -}; diff --git a/node_modules/es5-ext/test/array/of/implement.js b/node_modules/es5-ext/test/array/of/implement.js deleted file mode 100644 index 0b1f5c8f8..000000000 --- a/node_modules/es5-ext/test/array/of/implement.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var isImplemented = require("../../../array/of/is-implemented"); - -module.exports = function (a) { - a(isImplemented(), true); -}; diff --git a/node_modules/es5-ext/test/array/of/index.js b/node_modules/es5-ext/test/array/of/index.js deleted file mode 100644 index 10bb8f65d..000000000 --- a/node_modules/es5-ext/test/array/of/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./shim"); diff --git a/node_modules/es5-ext/test/array/of/is-implemented.js b/node_modules/es5-ext/test/array/of/is-implemented.js deleted file mode 100644 index 5003e7e93..000000000 --- a/node_modules/es5-ext/test/array/of/is-implemented.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - a(typeof t(), "boolean"); -}; diff --git a/node_modules/es5-ext/test/array/of/shim.js b/node_modules/es5-ext/test/array/of/shim.js deleted file mode 100644 index 7d18859af..000000000 --- a/node_modules/es5-ext/test/array/of/shim.js +++ /dev/null @@ -1,89 +0,0 @@ -/* eslint no-useless-call: "off" */ -// Most tests taken from https://github.com/mathiasbynens/Array.of/blob/master/tests/tests.js -// Thanks @mathiasbynens - -"use strict"; - -var defineProperty = Object.defineProperty; - -module.exports = function (t, a) { - var x = {}, testObject, MyType; - - a.deep(t(), [], "No arguments"); - a.deep(t(3), [3], "One numeric argument"); - a.deep(t(3, "raz", null, x, undefined), [3, "raz", null, x, undefined], "Many arguments"); - - a(t.length, 0, "Length"); - - a.deep(t("abc"), ["abc"], "String"); - a.deep(t(undefined), [undefined], "Undefined"); - a.deep(t(null), [null], "Null"); - a.deep(t(false), [false], "Boolean"); - a.deep(t(-Infinity), [-Infinity], "Infinity"); - a.deep(t(-0), [-0], "-0"); - a.deep(t(+0), [+0], "+0"); - a.deep(t(1), [1], "1"); - a.deep(t(1, 2, 3), [1, 2, 3], "Numeric args"); - a.deep(t(Number(Infinity)), [Number(Infinity)], "+Infinity"); - a.deep( - t({ 0: "a", 1: "b", 2: "c", length: 3 }), - [{ 0: "a", 1: "b", 2: "c", length: 3 }], - "Array like" - ); - a.deep( - t(undefined, null, false, -Infinity, -0, +0, 1, 2, Number(Infinity)), - [undefined, null, false, -Infinity, -0, +0, 1, 2, Number(Infinity)], - "Falsy arguments" - ); - - a.h1("Null context"); - a.deep(t.call(null, "abc"), ["abc"], "String"); - a.deep(t.call(null, undefined), [undefined], "Undefined"); - a.deep(t.call(null, null), [null], "Null"); - a.deep(t.call(null, false), [false], "Boolean"); - a.deep(t.call(null, -Infinity), [-Infinity], "-Infinity"); - a.deep(t.call(null, -0), [-0], "-0"); - a.deep(t.call(null, +0), [+0], "+0"); - a.deep(t.call(null, 1), [1], "1"); - a.deep(t.call(null, 1, 2, 3), [1, 2, 3], "Numeric"); - a.deep(t.call(null, Number(Infinity)), [Number(Infinity)], "+Infinity"); - a.deep( - t.call(null, { 0: "a", 1: "b", 2: "c", length: 3 }), - [{ 0: "a", 1: "b", 2: "c", length: 3 }], - "Array-like" - ); - a.deep( - t.call(null, undefined, null, false, -Infinity, -0, +0, 1, 2, Number(Infinity)), - [undefined, null, false, -Infinity, -0, +0, 1, 2, Number(Infinity)], - "Falsy" - ); - - a.h1("Other constructor context"); - a.deep(t.call(Object, 1, 2, 3), { 0: 1, 1: 2, 2: 3, length: 3 }, "Many arguments"); - - testObject = Object(3); - testObject[0] = 1; - testObject[1] = 2; - testObject[2] = 3; - testObject.length = 3; - a.deep(t.call(Object, 1, 2, 3), testObject, "Test object"); - a(t.call(Object).length, 0, "No arguments"); - a.throws( - function () { - t.call(function () { - return Object.freeze({}); - }); - }, - TypeError, - "Frozen instance" - ); - - // Ensure no setters are called for the indexes - MyType = function () {}; - defineProperty(MyType.prototype, "0", { - set: function (x) { - throw new Error("Setter called: " + x); - } - }); - a.deep(t.call(MyType, "abc"), { 0: "abc", length: 1 }, "Define, not set"); -}; diff --git a/node_modules/es5-ext/test/array/to-array.js b/node_modules/es5-ext/test/array/to-array.js deleted file mode 100644 index a1f10a4a4..000000000 --- a/node_modules/es5-ext/test/array/to-array.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - var o = [1, 2, 3]; - a(t(o), o, "Array"); - a.deep(t("12r3v"), ["1", "2", "r", "3", "v"], "String"); - a.deep( - t( - (function () { - return arguments; - })(3, o, "raz") - ), - [3, o, "raz"], - "Arguments" - ); - a.deep( - t( - (function () { - return arguments; - })(3) - ), - [3], - "Arguments with one numeric value" - ); - - a.deep(t({ 0: "raz", 1: "dwa", length: 2 }), ["raz", "dwa"], "Other"); -}; diff --git a/node_modules/es5-ext/test/array/valid-array.js b/node_modules/es5-ext/test/array/valid-array.js deleted file mode 100644 index a3708b22d..000000000 --- a/node_modules/es5-ext/test/array/valid-array.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { - var x; - a.throws(function () { - t(); -}, TypeError, "Undefined"); - a.throws(function () { - t(null); -}, TypeError, "Null"); - a.throws(function () { - t(0); -}, TypeError, "Number"); - a.throws(function () { - t(true); -}, TypeError, "Boolean"); - a.throws(function () { - t("raz"); -}, TypeError, "String"); - a.throws(function () { - t(function () {}); -}, TypeError, "Function"); - a.throws(function () { - t({}); -}, TypeError, "Object"); - a.throws(function () { - t({ length: 0 }); -}, TypeError, "Array-like"); - a(t(x = []), x, "Array"); -}; |