Comparing version 0.3.0 to 1.0.0
(The MIT License) | ||
Copyright (c) 2013 Enrico Marino | ||
Copyright (c) 2013 Enrico Marino | ||
Copyright (c) 2014 Enrico Marino and Jordan Harband | ||
@@ -5,0 +6,0 @@ Permission is hereby granted, free of charge, to any person obtaining |
{ | ||
"name": "is", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "node test/index.js", | ||
"coverage": "covert test/index.js", | ||
"coverage-quiet": "covert test/index.js --quiet" | ||
}, | ||
"author": { | ||
@@ -9,2 +16,6 @@ "name": "Enrico Marino", | ||
"homepage": "https://github.com/enricomarino/is", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/enricomarino/is.git" | ||
}, | ||
"keywords": [ | ||
@@ -22,17 +33,6 @@ "util", | ||
"dependencies": {}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/enricomarino/is.git" | ||
}, | ||
"main": "index.js", | ||
"version": "0.3.0", | ||
"scripts": { | ||
"test": "node test/index.js", | ||
"coverage": "covert test/index.js", | ||
"coverage-quiet": "covert test/index.js --quiet" | ||
}, | ||
"devDependencies": { | ||
"tape": "~2.5.0", | ||
"tape": "~2.14.0", | ||
"foreach": "~2.0.4", | ||
"covert": "~0.3.1" | ||
"covert": "~0.4.0" | ||
}, | ||
@@ -39,0 +39,0 @@ "testling": { |
@@ -108,3 +108,4 @@ # is | ||
Copyright (c) 2013 Enrico Marino | ||
Copyright (c) 2013 Enrico Marino | ||
Copyright (c) 2014 Enrico Marino and Jordan Harband | ||
@@ -111,0 +112,0 @@ Permission is hereby granted, free of charge, to any person obtaining |
@@ -5,2 +5,3 @@ var test = require('tape'); | ||
var forEach = require('foreach'); | ||
var toStr = Object.prototype.toString; | ||
@@ -53,2 +54,7 @@ test('is.type', function (t) { | ||
(function () { t.ok(is.empty(arguments), 'empty arguments is empty'); }()); | ||
t.notOk(is.empty({ a: 1 }), 'nonempty object is not empty'); | ||
t.notOk(is.empty(true), 'true is not empty'); | ||
t.notOk(is.empty(false), 'false is not empty'); | ||
t.notOk(is.empty(/a/g), 'regex is not empty'); | ||
t.notOk(is.empty(new Date()), 'date is not empty'); | ||
t.end(); | ||
@@ -71,2 +77,3 @@ }); | ||
at.notOk(is.equal([1, 2], [2, 3]), 'inequal arrays are not equal'); | ||
at.notOk(is.equal([1, 2, 3], [2, 3]), 'inequal length arrays are not equal'); | ||
@@ -273,3 +280,5 @@ var arr = [1, 2]; | ||
t.notOk(is.error({}), 'object is not error'); | ||
t.notOk(is.error({ toString: function () { return '[object Error]'; } }), 'object with error\'s toString is not error'); | ||
var objWithErrorToString = { toString: function () { return '[object Error]'; } }; | ||
t.equal(String(objWithErrorToString), toStr.call(new Error()), 'obj has Error\'s toString'); | ||
t.notOk(is.error(objWithErrorToString), 'object with Error\'s toString is not error'); | ||
t.end(); | ||
@@ -276,0 +285,0 @@ }); |
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
44817
1117
0
133