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

chai-changes

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chai-changes - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

20

chai-changes.js

@@ -1,3 +0,4 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.4.0
(function() {
(function(chaiChanges) {

@@ -40,3 +41,3 @@ if (typeof require === "function" && typeof exports === "object" && typeof module === "object") {

promiseCallback = function() {
var error, _j, _len1;
var _j, _len1;
try {

@@ -50,4 +51,3 @@ for (_j = 0, _len1 = definedActions.length; _j < _len1; _j++) {

return done();
} catch (_error) {
error = _error;
} catch (error) {
done(error);

@@ -135,3 +135,7 @@ throw error;

}
result = utils.eql(endValue, this.expectedEndValue);
if (this.expectedEndValue instanceof RegExp) {
result = this.expectedEndValue.test(endValue);
} else {
result = utils.eql(endValue, this.expectedEndValue);
}
context.assert(result, "expected `" + (formatFunction(object)) + "` to change to " + (utils.inspect(this.expectedEndValue)) + ", but it changed to " + (utils.inspect(endValue)), "expected `" + (formatFunction(object)) + "` not to change to " + (utils.inspect(this.expectedEndValue)) + ", but it did");

@@ -146,3 +150,7 @@ return flag(context, 'negate', negate);

startValue = object();
result = utils.eql(startValue, this.expectedStartValue);
if (this.expectedStartValue instanceof RegExp) {
result = this.expectedStartValue.test(startValue);
} else {
result = utils.eql(startValue, this.expectedStartValue);
}
context.assert(result, "expected the change of `" + (formatFunction(object)) + "` to start from " + (utils.inspect(this.expectedStartValue)) + ", but it started from " + (utils.inspect(startValue)), "expected the change of `" + (formatFunction(object)) + "` not to start from " + (utils.inspect(this.expectedStartValue)) + ", but it did");

@@ -149,0 +157,0 @@ return flag(context, 'negate', negate);

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

"keywords": [ "test", "assertion", "assert", "testing", "changes", "promises" ],
"version": "1.3.2",
"version": "1.3.3",
"repository": {

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

@@ -5,2 +5,3 @@ chai-changes

[![Build Status](https://travis-ci.org/matthijsgroen/chai-changes.png?branch=master)](https://travis-ci.org/matthijsgroen/chai-changes)
[![NPM Version](https://fury-badge.herokuapp.com/js/chai-changes.png)](http://badge.fury.io/js/chai-changes)

@@ -7,0 +8,0 @@ chai-changes is an extension to the [chai](http://chaijs.com/) assertion library that

Sorry, the diff of this file is not supported yet

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