unexpected
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -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 @@ }; |
{ | ||
"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'); | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
232400
6840