summaryrefslogtreecommitdiffstats
path: root/node_modules/is-date-object/test
diff options
context:
space:
mode:
authorGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
committerGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
commit81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch)
tree8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/is-date-object/test
parent1870f3fdf43707a15fda0f609a021f516f45eb63 (diff)
downloadwebsite_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip
rm node_modules
Diffstat (limited to 'node_modules/is-date-object/test')
-rw-r--r--node_modules/is-date-object/test/index.js36
1 files changed, 0 insertions, 36 deletions
diff --git a/node_modules/is-date-object/test/index.js b/node_modules/is-date-object/test/index.js
deleted file mode 100644
index b9d27c5..0000000
--- a/node_modules/is-date-object/test/index.js
+++ /dev/null
@@ -1,36 +0,0 @@
-'use strict';
-
-var test = require('tape');
-var isDate = require('../');
-var hasSymbols = typeof Symbol === 'function' && typeof Symbol('') === 'symbol';
-
-test('not Dates', function (t) {
- t.notOk(isDate(), 'undefined is not Date');
- t.notOk(isDate(null), 'null is not Date');
- t.notOk(isDate(false), 'false is not Date');
- t.notOk(isDate(true), 'true is not Date');
- t.notOk(isDate(42), 'number is not Date');
- t.notOk(isDate('foo'), 'string is not Date');
- t.notOk(isDate([]), 'array is not Date');
- t.notOk(isDate({}), 'object is not Date');
- t.notOk(isDate(function () {}), 'function is not Date');
- t.notOk(isDate(/a/g), 'regex literal is not Date');
- t.notOk(isDate(new RegExp('a', 'g')), 'regex object is not Date');
- t.end();
-});
-
-test('@@toStringTag', { skip: !hasSymbols || !Symbol.toStringTag }, function (t) {
- var realDate = new Date();
- var fakeDate = {
- toString: function () { return String(realDate); },
- valueOf: function () { return realDate.getTime(); }
- };
- fakeDate[Symbol.toStringTag] = 'Date';
- t.notOk(isDate(fakeDate), 'fake Date with @@toStringTag "Date" is not Date');
- t.end();
-});
-
-test('Dates', function (t) {
- t.ok(isDate(new Date()), 'new Date() is Date');
- t.end();
-});