aboutsummaryrefslogtreecommitdiff
path: root/node_modules/es5-ext/test/date
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-03-27 21:01:33 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-03-27 21:01:33 +0100
commitcc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch)
tree92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/es5-ext/test/date
parent3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff)
remove node_modules
Diffstat (limited to 'node_modules/es5-ext/test/date')
-rw-r--r--node_modules/es5-ext/test/date/#/copy.js10
-rw-r--r--node_modules/es5-ext/test/date/#/days-in-month.js17
-rw-r--r--node_modules/es5-ext/test/date/#/floor-day.js6
-rw-r--r--node_modules/es5-ext/test/date/#/floor-month.js6
-rw-r--r--node_modules/es5-ext/test/date/#/floor-year.js6
-rw-r--r--node_modules/es5-ext/test/date/#/format.js6
-rw-r--r--node_modules/es5-ext/test/date/ensure-time-value.js14
-rw-r--r--node_modules/es5-ext/test/date/is-date.js10
-rw-r--r--node_modules/es5-ext/test/date/is-time-value.js15
-rw-r--r--node_modules/es5-ext/test/date/valid-date.js14
10 files changed, 0 insertions, 104 deletions
diff --git a/node_modules/es5-ext/test/date/#/copy.js b/node_modules/es5-ext/test/date/#/copy.js
deleted file mode 100644
index 27c996bba..000000000
--- a/node_modules/es5-ext/test/date/#/copy.js
+++ /dev/null
@@ -1,10 +0,0 @@
-"use strict";
-
-module.exports = function (t, a) {
- var o = new Date(), o2;
-
- o2 = t.call(o);
- a.not(o, o2, "Different objects");
- a.ok(o2 instanceof Date, "Instance of Date");
- a(o.getTime(), o2.getTime(), "Same time");
-};
diff --git a/node_modules/es5-ext/test/date/#/days-in-month.js b/node_modules/es5-ext/test/date/#/days-in-month.js
deleted file mode 100644
index ce2dd7754..000000000
--- a/node_modules/es5-ext/test/date/#/days-in-month.js
+++ /dev/null
@@ -1,17 +0,0 @@
-"use strict";
-
-module.exports = function (t, a) {
- a(t.call(new Date(2001, 0, 1)), 31, "January");
- a(t.call(new Date(2001, 1, 1)), 28, "February");
- a(t.call(new Date(2000, 1, 1)), 29, "February (leap)");
- a(t.call(new Date(2001, 2, 1)), 31, "March");
- a(t.call(new Date(2001, 3, 1)), 30, "April");
- a(t.call(new Date(2001, 4, 1)), 31, "May");
- a(t.call(new Date(2001, 5, 1)), 30, "June");
- a(t.call(new Date(2001, 6, 1)), 31, "July");
- a(t.call(new Date(2001, 7, 1)), 31, "August");
- a(t.call(new Date(2001, 8, 1)), 30, "September");
- a(t.call(new Date(2001, 9, 1)), 31, "October");
- a(t.call(new Date(2001, 10, 1)), 30, "November");
- a(t.call(new Date(2001, 11, 1)), 31, "December");
-};
diff --git a/node_modules/es5-ext/test/date/#/floor-day.js b/node_modules/es5-ext/test/date/#/floor-day.js
deleted file mode 100644
index fa929d683..000000000
--- a/node_modules/es5-ext/test/date/#/floor-day.js
+++ /dev/null
@@ -1,6 +0,0 @@
-"use strict";
-
-module.exports = function (t, a) {
- a(t.call(new Date(2000, 0, 1, 13, 32, 34, 234)).valueOf(),
- new Date(2000, 0, 1).valueOf());
-};
diff --git a/node_modules/es5-ext/test/date/#/floor-month.js b/node_modules/es5-ext/test/date/#/floor-month.js
deleted file mode 100644
index 1df4ddbeb..000000000
--- a/node_modules/es5-ext/test/date/#/floor-month.js
+++ /dev/null
@@ -1,6 +0,0 @@
-"use strict";
-
-module.exports = function (t, a) {
- a(t.call(new Date(2000, 0, 15, 13, 32, 34, 234)).valueOf(),
- new Date(2000, 0, 1).valueOf());
-};
diff --git a/node_modules/es5-ext/test/date/#/floor-year.js b/node_modules/es5-ext/test/date/#/floor-year.js
deleted file mode 100644
index 5b78b7dcf..000000000
--- a/node_modules/es5-ext/test/date/#/floor-year.js
+++ /dev/null
@@ -1,6 +0,0 @@
-"use strict";
-
-module.exports = function (t, a) {
- a(t.call(new Date(2000, 5, 13, 13, 32, 34, 234)).valueOf(),
- new Date(2000, 0, 1).valueOf());
-};
diff --git a/node_modules/es5-ext/test/date/#/format.js b/node_modules/es5-ext/test/date/#/format.js
deleted file mode 100644
index 510b26b44..000000000
--- a/node_modules/es5-ext/test/date/#/format.js
+++ /dev/null
@@ -1,6 +0,0 @@
-"use strict";
-
-module.exports = function (t, a) {
- var dt = new Date(2011, 2, 3, 3, 5, 5, 32);
- a(t.call(dt, " %Y.%y.%m.%d.%H.%M.%S.%L "), " 2011.11.03.03.03.05.05.032 ");
-};
diff --git a/node_modules/es5-ext/test/date/ensure-time-value.js b/node_modules/es5-ext/test/date/ensure-time-value.js
deleted file mode 100644
index 39ddc23c4..000000000
--- a/node_modules/es5-ext/test/date/ensure-time-value.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-
-module.exports = function (t, a) {
- a(t(12), 12, "Number in range");
- a(t(12.23), 12, "Rounds number in range");
- a(t(-12.63), -12, "Rounds negative number in range");
- a.throws(
- function () {
- t(NaN);
- },
- TypeError,
- "Throws on invalid"
- );
-};
diff --git a/node_modules/es5-ext/test/date/is-date.js b/node_modules/es5-ext/test/date/is-date.js
deleted file mode 100644
index 90ae8ad70..000000000
--- a/node_modules/es5-ext/test/date/is-date.js
+++ /dev/null
@@ -1,10 +0,0 @@
-"use strict";
-
-module.exports = function (t, a) {
- a(t("arar"), false, "String");
- a(t(12), false, "Number");
- a(t(true), false, "Boolean");
- a(t(new Date()), true, "Date");
- a(t(new String("raz")), false, "String object");
- a(t({}), false, "Plain object");
-};
diff --git a/node_modules/es5-ext/test/date/is-time-value.js b/node_modules/es5-ext/test/date/is-time-value.js
deleted file mode 100644
index a21677c06..000000000
--- a/node_modules/es5-ext/test/date/is-time-value.js
+++ /dev/null
@@ -1,15 +0,0 @@
-"use strict";
-
-module.exports = function (t, a) {
- a(t("arar"), false, "String");
- a(t(12), true, "Number in range");
- a(t(true), true, "Boolean");
- a(t(new Date()), true, "Date");
- a(t({}), false, "Plain object");
- a(t(NaN), false, "NaN");
- a(t(Infinity), false, "Infinity");
- a(t(8.64e17), false, "Beyond range");
- a(t(8.64e15), true, "Below range");
- a(t(-8.64e17), false, "Negative beyond range");
- a(t(-8.64e15), true, "Negative below range");
-};
diff --git a/node_modules/es5-ext/test/date/valid-date.js b/node_modules/es5-ext/test/date/valid-date.js
deleted file mode 100644
index 2856cb6a8..000000000
--- a/node_modules/es5-ext/test/date/valid-date.js
+++ /dev/null
@@ -1,14 +0,0 @@
-"use strict";
-
-module.exports = function (t, a) {
- var d = new Date();
- a(t(d), d, "Date");
- a.throws(function () {
- t({});
- }, "Object");
- a.throws(function () {
- t({ valueOf: function () {
- return 20;
-} });
- }, "Number object");
-};