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

assert-the-unexpected

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

assert-the-unexpected - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

test/node.js

4

lib/assertTheUnexpected.js

@@ -257,7 +257,7 @@ var AssertionError = require('assert').AssertionError;

} else {
checkToError = function (e) {
checkToError = expect.it(function (e) {
checkError(e);
return true;
};
});

@@ -264,0 +264,0 @@ // the message is the second argument if it exists

{
"name": "assert-the-unexpected",
"version": "1.0.0",
"version": "1.1.0",
"description": "assert facade for Unexpected",

@@ -17,8 +17,9 @@ "author": "Alex J Burke <alex@alexjeffburke.com>",

"dependencies": {
"unexpected": "^10.26.0"
"unexpected": "^10.37.7"
},
"peerDependencies": {
"unexpected": "^10.26.0"
"unexpected": "^10.37.7 || ^11.0.0"
},
"devDependencies": {
"coveralls": "^3.0.0",
"mocha": "^3.2.0",

@@ -25,0 +26,0 @@ "nyc": "^11.9.0",

@@ -5,5 +5,8 @@ # assert-the-unexpected

[![Build Status](https://travis-ci.org/alexjeffburke/assert-the-unexpected.svg?branch=master)](https://travis-ci.org/alexjeffburke/assert-the-unexpected)
[![Coverage Status](https://img.shields.io/coveralls/alexjeffburke/assert-the-unexpected.svg?style=flat)](https://coveralls.io/r/alexjeffburke/assert-the-unexpected?branch=master)
This implements the node core `assert` API as an Unexpected facade.
This library implements the node core `assert` API as an Unexpected facade.
## Compatibility
A great deal of emphasis was placed on compatibility and this module aims to

@@ -17,2 +20,4 @@ be a drop-in replacement. It was developed against the node core test suite

The current baseline version of node assert is **4.7.3**.
The libary has been tested against the follwing baseline versions of node assert:
- **4.7.3**
- **6.15.1**

@@ -88,5 +88,5 @@ var assert = require('../lib/assertTheUnexpected');

assert.deepEqual([0], [true], theMessage);
}, 'to error', function (e) {
}, 'to error', expect.it(function (e) {
hasAssertionErrorMessage(e, theMessage);
});
}));
});

@@ -175,5 +175,5 @@ });

assert.equal('a', 'b', theMessage);
}, 'to error', function (e) {
}, 'to error', expect.it(function (e) {
hasAssertionErrorMessage(e, theMessage);
});
}));
});

@@ -219,5 +219,5 @@ });

assert.notEqual(0, '0', theMessage);
}, 'to error', function (e) {
}, 'to error', expect.it(function (e) {
hasAssertionErrorMessage(e, theMessage);
});
}));
});

@@ -232,5 +232,5 @@ });

assert.notDeepEqual([0], ['0'], theMessage);
}, 'to error', function (e) {
}, 'to error', expect.it(function (e) {
hasAssertionErrorMessage(e, theMessage);
});
}));
});

@@ -245,5 +245,5 @@ });

assert.notDeepStrictEqual([0], [0], theMessage);
}, 'to error', function (e) {
}, 'to error', expect.it(function (e) {
hasAssertionErrorMessage(e, theMessage);
});
}));
});

@@ -258,5 +258,5 @@ });

assert.notStrictEqual(0, 0, theMessage);
}, 'to error', function (e) {
}, 'to error', expect.it(function (e) {
hasAssertionErrorMessage(e, theMessage);
});
}));
});

@@ -277,5 +277,5 @@ });

assert.ok(false, theMessage);
}, 'to error', function (e) {
}, 'to error', expect.it(function (e) {
hasAssertionErrorMessage(e, theMessage);
});
}));
});

@@ -290,5 +290,5 @@ });

assert.strictEqual('boo', 'hoo', theMessage);
}, 'to error', function (e) {
}, 'to error', expect.it(function (e) {
hasAssertionErrorMessage(e, theMessage);
});
}));
});

@@ -355,7 +355,7 @@ });

assert.ok(false, theMessage);
}, 'to error', function (e) {
}, 'to error', expect.it(function (e) {
hasAssertionErrorMessage(e, theMessage);
});
}));
});
});
});

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