unexpected
Advanced tools
Comparing version 2.0.0 to 2.1.0
{ | ||
"name": "unexpected", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>", | ||
@@ -17,3 +17,3 @@ "keywords": [ | ||
"scripts": { | ||
"test": "./node_modules/.bin/mocha-phantomjs test/tests.html" | ||
"test": "make test" | ||
}, | ||
@@ -23,2 +23,3 @@ "main": "./lib/unexpected.js", | ||
"devDependencies": { | ||
"jshint": "*", | ||
"mocha": "=1.12.0", | ||
@@ -25,0 +26,0 @@ "phantomjs": "=1.9.1-0", |
@@ -107,7 +107,8 @@ # Unexpected | ||
**equal**: asserts loose equality that works with objects | ||
**equal**: asserts deep equality that works with objects | ||
```js | ||
expect({ a: 'b' }, 'to equal', { a: 'b' }); | ||
expect(1, 'to equal', '1'); | ||
expect(1, 'not to equal', '1'); | ||
expect({ one: 1 }, 'not to equal', { one: '1' }); | ||
expect(null, 'not to equal', '1'); | ||
@@ -461,15 +462,6 @@ var now = new Date(); | ||
## Running tests | ||
## Development | ||
Clone the repository and install the developer dependencies: | ||
[Everything you need to know to contribute to unexpected.](Development.md) | ||
``` | ||
git clone git://github.com/sunesimonsen/unexpected.git unexpected | ||
cd unexpected && npm install | ||
``` | ||
### Node | ||
`npm test` | ||
## Credits | ||
@@ -476,0 +468,0 @@ |
@@ -153,3 +153,3 @@ /*global describe, it, expect*/ | ||
describe('equal assertion', function () { | ||
it('asserts loose equality that works with objects', function () { | ||
it('asserts deep equality that works with objects', function () { | ||
expect({ a: 'b' }, 'to equal', { a: 'b' }); | ||
@@ -513,2 +513,3 @@ expect(1, 'not to equal', '1'); | ||
expect({ a: 'b' }, 'not to have key', 'b'); | ||
expect({ a: 'b', c: 'd' }, 'not to have key', 'b'); | ||
expect({ a: 'b', c: 'd' }, 'to not only have key', 'a'); | ||
@@ -515,0 +516,0 @@ expect({ a: 'b', c: 'd' }, 'to only have keys', 'a', 'c'); |
@@ -56,9 +56,5 @@ // Stolen from: https://github.com/kriskowal/es5-shim/blob/master/tests/helpers/h-kill.js | ||
HLP.kill(Array, [ | ||
'forEach', 'isArray' | ||
'isArray' | ||
]); | ||
HLP.kill(Array.prototype, [ | ||
'forEach' | ||
]); | ||
HLP.kill(Object, [ | ||
@@ -71,2 +67,11 @@ 'keys' | ||
]); | ||
if (typeof mochaPhantomJS === 'undefined') { | ||
// Mocha Phantom JS uses forEach internally | ||
HLP.kill(Array.prototype, [ | ||
'forEach' | ||
]); | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
255933
25
5019
0
6
495