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

unexpected

Package Overview
Dependencies
Maintainers
2
Versions
330
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unexpected - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

2

package.json
{
"name": "unexpected",
"version": "2.1.0",
"version": "2.1.1",
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>",

@@ -5,0 +5,0 @@ "keywords": [

@@ -113,5 +113,5 @@ (function () {

this.obj.hasOwnProperty(property) &&
this.obj[property] === properties[property]);
this.equal(this.obj[property], properties[property]));
} else {
this.assert(this.obj && this.obj[property] === properties[property]);
this.assert(this.obj && this.equal(this.obj[property], properties[property]));
}

@@ -118,0 +118,0 @@ }, this);

@@ -418,5 +418,5 @@ /*global describe, it, expect*/

it('asserts absence of a list of properties', function () {
expect({a: 'foo', b: 'bar'}, 'not to have properties', ['c','d']);
expect({a: 'foo', b: 'bar'}, 'not to have properties', ['c', 'd']);
expect(function () {
expect({a: 'foo', b: 'bar'}, 'not to have properties', ['a','d']);
expect({a: 'foo', b: 'bar'}, 'not to have properties', ['a', 'd']);
}, 'to throw', "expected { a: 'foo', b: 'bar' } not to have properties [ 'a', 'd' ]");

@@ -435,3 +435,7 @@ });

it('asserts presence and values of an object of properties', function () {
expect({a: 'foo', b: 'bar', c: 'baz'}, 'to have properties', {a: 'foo', b: 'bar'});
expect({a: 'foo', b: 'bar', c: 'baz', d: { qux: 'qux', quux: 'quux'}}, 'to have properties', {
a: 'foo',
b: 'bar',
d: { qux: 'qux', quux: 'quux'}
});
expect(function () {

@@ -438,0 +442,0 @@ expect({a: 'foo', b: 'bar'}, 'to have properties', {c: 'baz'});

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