Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

unexpected

Package Overview
Dependencies
Maintainers
2
Versions
330
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unexpected - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

.jshintrc

5

package.json
{
"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",

18

ReadMe.md

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc