REDROOM
PHP 8.1.33
Path:
Logout
Edit File
Size: 1.17 KB
Close
//lib/node_modules/npm/node_modules/is-date-object/test.js
Text
Base64
'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(); });
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 10
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
.jscs.json
2.81 KB
lrw-r--r--
2021-03-10 14:36:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
.npmignore
587 B
lrw-r--r--
2021-03-10 14:36:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
.travis.yml
1.12 KB
lrw-r--r--
2021-03-10 14:36:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CHANGELOG.md
421 B
lrw-r--r--
2021-03-10 14:36:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
551 B
lrw-r--r--
2021-03-10 14:36:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LICENSE
1.06 KB
lrw-r--r--
2021-03-10 14:36:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Makefile
3.74 KB
lrw-r--r--
2021-03-10 14:36:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
1.55 KB
lrw-r--r--
2021-03-10 14:36:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README.md
1.71 KB
lrw-r--r--
2021-03-10 14:36:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
test.js
1.17 KB
lrw-r--r--
2021-03-10 14:36:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).