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 1.1.2 to 1.1.3

4

lib/unexpected.js

@@ -111,2 +111,6 @@ // Copyright (c) 2013 Sune Simonsen <sune@we-knowhow.dk>

Unexpected.prototype.installPlugin = function (plugin) {
if (typeof plugin !== 'function') {
throw new Error('Expected first argument given to installPlugin to be a function');
}
plugin(this.expect);

@@ -113,0 +117,0 @@ };

2

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

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

@@ -1116,3 +1116,9 @@ /*global describe, it, expect*/

});
it('throws if the given arguments in not a function', function () {
expect(function () {
expect.installPlugin({});
}, 'to throw', 'Expected first argument given to installPlugin to be a function');
});
});
});
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