Comparing version 0.0.2 to 1.0.0
@@ -19,3 +19,5 @@ /* | ||
'Undefined', | ||
'Arguments' | ||
'Arguments', | ||
'AsyncFunction', | ||
'Promise' | ||
] | ||
@@ -22,0 +24,0 @@ |
{ | ||
"name": "iskindof", | ||
"version": "0.0.2", | ||
"version": "1.0.0", | ||
"description": "iskindof type in JavaScript", | ||
@@ -26,3 +26,6 @@ "main": "index.js", | ||
"tape": "^4.2.2" | ||
}, | ||
"engines" : { | ||
"node" : ">=8.0.0" | ||
} | ||
} |
35
test.js
@@ -150,1 +150,36 @@ /* | ||
}) | ||
test('KindOf AsyncFunction', (t) => { | ||
t.plan(11) | ||
t.equal(_.isAsyncFunction(async () =>{}), true) | ||
t.equal(_.isAsyncFunction(new Date()), false) | ||
t.equal(_.isAsyncFunction({}), false) | ||
t.equal(_.isAsyncFunction(null), false) | ||
t.equal(_.isAsyncFunction([]), false) | ||
t.equal(_.isAsyncFunction(1), false) | ||
t.equal(_.isAsyncFunction(undefined), false) | ||
t.equal(_.isAsyncFunction(noop), false) | ||
t.equal(_.isAsyncFunction('string'), false) | ||
t.equal(_.isAsyncFunction(NaN), false) | ||
t.equal(_.isAsyncFunction(), false) | ||
}) | ||
test('KindOf Promise', (t) => { | ||
t.plan(12) | ||
t.equal(_.isPromise(new Promise(() =>{})), true) | ||
t.equal(_.isPromise(async () =>{}), false) | ||
t.equal(_.isPromise(new Date()), false) | ||
t.equal(_.isPromise({}), false) | ||
t.equal(_.isPromise(null), false) | ||
t.equal(_.isPromise([]), false) | ||
t.equal(_.isPromise(1), false) | ||
t.equal(_.isPromise(undefined), false) | ||
t.equal(_.isPromise(noop), false) | ||
t.equal(_.isPromise('string'), false) | ||
t.equal(_.isPromise(NaN), false) | ||
t.equal(_.isPromise(), false) | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6462
177
1