Comparing version 0.2.0 to 0.3.0
0.3.0 / 2014-02-20 | ||
================== | ||
* renmaed to `index.js` | ||
* added repository to package.json | ||
* remove unused variable and merge | ||
* simpify isDate() and remove unnecessary semicolon. | ||
* Add .withArgs() syntax for building scenario | ||
* eql(): fix wrong order of actual vs. expected. | ||
* Added formatting for Error objects | ||
* Add support for 'regexp' type and eql comparison of regular expressions. | ||
* Better to follow the same coding style | ||
* Use 'showDiff' flag | ||
* Add 'actual' & 'expected' property to the thrown error | ||
* Pass .fail() unit test | ||
* Ignore 'script*' global leak in chrome | ||
* Exposed object stringification function | ||
* Use isRegExp in Assertion::throwException. Fix #25 | ||
* Cleaned up local variables | ||
0.2.0 / 2012-10-19 | ||
@@ -3,0 +23,0 @@ ================== |
{ | ||
"name": "expect.js" | ||
, "version": "0.2.0" | ||
, "version": "0.3.0" | ||
, "description": "BDD style assertions for node and the browser." | ||
, "main": "./expect" | ||
, "repository": { | ||
"type": "git", | ||
"url": "git://github.com/LearnBoost/expect.js.git" | ||
} | ||
, "devDependencies": { | ||
@@ -7,0 +10,0 @@ "mocha": "*" |
@@ -145,2 +145,9 @@ # Expect | ||
**withArgs**: creates anonymous function to call fn with arguments | ||
```js | ||
expect(fn).withArgs(invalid, arg).to.throwException(); | ||
expect(fn).withArgs(valid, arg).to.not.throwException(); | ||
``` | ||
**within**: asserts a number within a range | ||
@@ -147,0 +154,0 @@ |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
44617
1064
264
0
1