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

chai

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chai - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

8

chai.js

@@ -844,3 +844,3 @@ !function (name, definition) {

} catch (err) {
if (constructor && 'function' === typeof constructor) {
if (constructor && 'function' === typeof constructor && constructor.constructor != RegExp) {
this.assert(

@@ -854,4 +854,4 @@ err instanceof constructor && err.name == constructor.name

constructor.exec(err.message)
, 'expected ' + this.inspect + ' to throw error matching ' + inspect(constructor) + ' but got ' + inspect(err.message)
, 'expected ' + this.inspect + ' to throw error not matching ' + inspect(constructor) );
, 'expected ' + this.inspect + ' to throw error matching ' + constructor + ' but got ' + inspect(err.message)
, 'expected ' + this.inspect + ' to throw error not matching ' + constructor);
return this;

@@ -902,3 +902,3 @@ } else {

exports.version = '0.3.0';
exports.version = '0.3.1';

@@ -905,0 +905,0 @@ exports.Assertion = require('./assertion');

0.3.1 / 2012-02-07
==================
* node 0.4.x compat
0.3.0 / 2012-02-07

@@ -3,0 +8,0 @@ ==================

@@ -791,3 +791,3 @@ /*!

} catch (err) {
if (constructor && 'function' === typeof constructor) {
if (constructor && 'function' === typeof constructor && constructor.constructor != RegExp) {
this.assert(

@@ -801,4 +801,4 @@ err instanceof constructor && err.name == constructor.name

constructor.exec(err.message)
, 'expected ' + this.inspect + ' to throw error matching ' + inspect(constructor) + ' but got ' + inspect(err.message)
, 'expected ' + this.inspect + ' to throw error not matching ' + inspect(constructor) );
, 'expected ' + this.inspect + ' to throw error matching ' + constructor + ' but got ' + inspect(err.message)
, 'expected ' + this.inspect + ' to throw error not matching ' + constructor);
return this;

@@ -805,0 +805,0 @@ } else {

@@ -10,3 +10,3 @@ /*!

exports.version = '0.3.0';
exports.version = '0.3.1';

@@ -13,0 +13,0 @@ exports.Assertion = require('./assertion');

@@ -6,3 +6,3 @@ {

"keywords": [ "test", "assertion", "assert", "testing" ],
"version": "0.3.0",
"version": "0.3.1",
"repository": {

@@ -9,0 +9,0 @@ "type": "git",

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