Socket
Socket
Sign inDemoInstall

expect.js

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

expect.js - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

index.js

20

History.md
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 @@ ==================

7

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

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