assert-the-unexpected
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -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
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
64540
10
1655
22
4
Updatedunexpected@^10.37.7