summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/es5-ext/test/function
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2016-04-09 14:11:01 +0200
committersilverwind <me@silverwind.io>2016-04-10 11:46:08 +0200
commit2f6ff1bb64ac4f3e201039c8e83f8eb95f73c769 (patch)
tree710fe0778ca523281965244fdca60c4a031980e6 /tools/eslint/node_modules/es5-ext/test/function
parent8f4fdc93f07a06a62d4f867c6e0fd2f6287bb8be (diff)
downloadnode-new-2f6ff1bb64ac4f3e201039c8e83f8eb95f73c769.tar.gz
tools: update ESLint to 2.7.0
PR-URL: https://github.com/nodejs/node/pull/6132 Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: thefourtheye <thechargingvolcano@gmail.com>
Diffstat (limited to 'tools/eslint/node_modules/es5-ext/test/function')
-rw-r--r--tools/eslint/node_modules/es5-ext/test/function/#/compose.js9
-rw-r--r--tools/eslint/node_modules/es5-ext/test/function/#/copy.js19
-rw-r--r--tools/eslint/node_modules/es5-ext/test/function/#/curry.js18
-rw-r--r--tools/eslint/node_modules/es5-ext/test/function/#/lock.js7
-rw-r--r--tools/eslint/node_modules/es5-ext/test/function/#/not.js11
-rw-r--r--tools/eslint/node_modules/es5-ext/test/function/#/partial.js9
-rw-r--r--tools/eslint/node_modules/es5-ext/test/function/#/spread.js8
-rw-r--r--tools/eslint/node_modules/es5-ext/test/function/#/to-string-tokens.js12
-rw-r--r--tools/eslint/node_modules/es5-ext/test/function/_define-length.js12
-rw-r--r--tools/eslint/node_modules/es5-ext/test/function/constant.js7
-rw-r--r--tools/eslint/node_modules/es5-ext/test/function/identity.js7
-rw-r--r--tools/eslint/node_modules/es5-ext/test/function/invoke.js9
-rw-r--r--tools/eslint/node_modules/es5-ext/test/function/is-arguments.js11
-rw-r--r--tools/eslint/node_modules/es5-ext/test/function/is-function.js8
-rw-r--r--tools/eslint/node_modules/es5-ext/test/function/noop.js5
-rw-r--r--tools/eslint/node_modules/es5-ext/test/function/pluck.js7
-rw-r--r--tools/eslint/node_modules/es5-ext/test/function/valid-function.js17
17 files changed, 0 insertions, 176 deletions
diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/compose.js b/tools/eslint/node_modules/es5-ext/test/function/#/compose.js
deleted file mode 100644
index 83de5e844a..0000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/#/compose.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-var f = function (a, b) { return ['a', arguments.length, a, b]; }
- , g = function (a) { return ['b', arguments.length].concat(a); }
- , h = function (a) { return ['c', arguments.length].concat(a); };
-
-module.exports = function (t, a) {
- a.deep(t.call(h, g, f)(1, 2), ['c', 1, 'b', 1, 'a', 2, 1, 2]);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/copy.js b/tools/eslint/node_modules/es5-ext/test/function/#/copy.js
deleted file mode 100644
index 7a22e2f249..0000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/#/copy.js
+++ /dev/null
@@ -1,19 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var foo = 'raz', bar = 'dwa'
- , fn = function marko(a, b) { return this + a + b + foo + bar; }
- , result, o = {};
-
- fn.prototype = o;
-
- fn.foo = 'raz';
-
- result = t.call(fn);
-
- a(result.length, fn.length, "Length");
- a(result.name, fn.name, "Length");
- a(result.call('marko', 'el', 'fe'), 'markoelferazdwa', "Body");
- a(result.prototype, fn.prototype, "Prototype");
- a(result.foo, fn.foo, "Custom property");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/curry.js b/tools/eslint/node_modules/es5-ext/test/function/#/curry.js
deleted file mode 100644
index 18fb0389e7..0000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/#/curry.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-
-var toArray = require('../../../array/to-array')
-
- , f = function () { return toArray(arguments); };
-
-module.exports = function (t, a) {
- var x, y = {}, z;
- a.deep(t.call(f, 0, 1, 2)(3), [], "0 arguments");
- x = t.call(f, 5, {});
- a(x.length, 5, "Length #1");
- z = x(1, 2);
- a(z.length, 3, "Length #2");
- z = z(3, 4);
- a(z.length, 1, "Length #1");
- a.deep(z(5, 6), [1, 2, 3, 4, 5], "Many arguments");
- a.deep(x(8, 3)(y, 45)('raz', 6), [8, 3, y, 45, 'raz'], "Many arguments #2");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/lock.js b/tools/eslint/node_modules/es5-ext/test/function/#/lock.js
deleted file mode 100644
index 44a12d7b56..0000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/#/lock.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(t.call(function () {
- return arguments.length;
- })(1, 2, 3), 0);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/not.js b/tools/eslint/node_modules/es5-ext/test/function/#/not.js
deleted file mode 100644
index c0f5e9d4b9..0000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/#/not.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-var identity = require('../../../function/identity')
- , noop = require('../../../function/noop');
-
-module.exports = function (t, a) {
- a(t.call(identity)(''), true, "Falsy");
- a(t.call(noop)(), true, "Undefined");
- a(t.call(identity)({}), false, "Any object");
- a(t.call(identity)(true), false, "True");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/partial.js b/tools/eslint/node_modules/es5-ext/test/function/#/partial.js
deleted file mode 100644
index bd00ce752f..0000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/#/partial.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-var toArray = require('../../../array/to-array')
-
- , f = function () { return toArray(arguments); };
-
-module.exports = function (t, a) {
- a.deep(t.call(f, 1)(2, 3), [1, 2, 3]);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/spread.js b/tools/eslint/node_modules/es5-ext/test/function/#/spread.js
deleted file mode 100644
index b82dfecfe9..0000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/#/spread.js
+++ /dev/null
@@ -1,8 +0,0 @@
-'use strict';
-
-var f = function (a, b) { return this[a] + this[b]; }
- , o = { a: 3, b: 4 };
-
-module.exports = function (t, a) {
- a(t.call(f).call(o, ['a', 'b']), 7);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/to-string-tokens.js b/tools/eslint/node_modules/es5-ext/test/function/#/to-string-tokens.js
deleted file mode 100644
index 4c54d30354..0000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/#/to-string-tokens.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a.deep(t.call(function (a, b) { return this[a] + this[b]; }),
- { args: 'a, b', body: ' return this[a] + this[b]; ' });
- a.deep(t.call(function () {}),
- { args: '', body: '' });
- a.deep(t.call(function (raz) {}),
- { args: 'raz', body: '' });
- a.deep(t.call(function () { Object(); }),
- { args: '', body: ' Object(); ' });
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/_define-length.js b/tools/eslint/node_modules/es5-ext/test/function/_define-length.js
deleted file mode 100644
index 8f037e857e..0000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/_define-length.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var foo = 'raz', bar = 'dwa'
- , fn = function (a, b) { return this + a + b + foo + bar; }
- , result;
-
- result = t(fn, 3);
- a(result.call('marko', 'el', 'fe'), 'markoelferazdwa', "Content");
- a(result.length, 3, "Length");
- a(result.prototype, fn.prototype, "Prototype");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/constant.js b/tools/eslint/node_modules/es5-ext/test/function/constant.js
deleted file mode 100644
index fda52aa437..0000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/constant.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-
-var o = {};
-
-module.exports = function (t, a) {
- a(t(o)(), o);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/identity.js b/tools/eslint/node_modules/es5-ext/test/function/identity.js
deleted file mode 100644
index 8013e2e5af..0000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/identity.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-
-var o = {};
-
-module.exports = function (t, a) {
- a(t(o), o);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/invoke.js b/tools/eslint/node_modules/es5-ext/test/function/invoke.js
deleted file mode 100644
index fcce4aaaaa..0000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/invoke.js
+++ /dev/null
@@ -1,9 +0,0 @@
-'use strict';
-
-var constant = require('../../function/constant')
-
- , o = { b: constant('c') };
-
-module.exports = function (t, a) {
- a(t('b')(o), 'c');
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/is-arguments.js b/tools/eslint/node_modules/es5-ext/test/function/is-arguments.js
deleted file mode 100644
index f8de8812a5..0000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/is-arguments.js
+++ /dev/null
@@ -1,11 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var args, dummy;
- args = (function () { return arguments; }());
- dummy = { '0': 1, '1': 2 };
- Object.defineProperty(dummy, 'length', { value: 2 });
- a(t(args), true, "Arguments");
- a(t(dummy), false, "Dummy");
- a(t([]), false, "Array");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/is-function.js b/tools/eslint/node_modules/es5-ext/test/function/is-function.js
deleted file mode 100644
index 83acc42f9a..0000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/is-function.js
+++ /dev/null
@@ -1,8 +0,0 @@
-'use strict';
-
-var o = { call: Function.prototype.call, apply: Function.prototype.apply };
-
-module.exports = function (t, a) {
- a(t(function () {}), true, "Function is function");
- a(t(o), false, "Plain object is not function");
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/noop.js b/tools/eslint/node_modules/es5-ext/test/function/noop.js
deleted file mode 100644
index 4305c6fcfd..0000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/noop.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- a(typeof t(1, 2, 3), 'undefined');
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/pluck.js b/tools/eslint/node_modules/es5-ext/test/function/pluck.js
deleted file mode 100644
index 5bf9583ad5..0000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/pluck.js
+++ /dev/null
@@ -1,7 +0,0 @@
-'use strict';
-
-var o = { foo: 'bar' };
-
-module.exports = function (t, a) {
- a(t('foo')(o), o.foo);
-};
diff --git a/tools/eslint/node_modules/es5-ext/test/function/valid-function.js b/tools/eslint/node_modules/es5-ext/test/function/valid-function.js
deleted file mode 100644
index 59b16233b3..0000000000
--- a/tools/eslint/node_modules/es5-ext/test/function/valid-function.js
+++ /dev/null
@@ -1,17 +0,0 @@
-'use strict';
-
-module.exports = function (t, a) {
- var f = function () {};
- a(t(f), f, "Function");
- f = new Function();
- a(t(f), f, "Function");
- a.throws(function () {
- t({});
- }, "Object");
- a.throws(function () {
- t(/re/);
- }, "RegExp");
- a.throws(function () {
- t({ call: function () { return 20; } });
- }, "Plain object");
-};