jasmine-expect
Advanced tools
Comparing version 1.22.0 to 1.22.2
@@ -286,3 +286,3 @@ /* | ||
*/ | ||
matchers.toThrowError = function() { | ||
matchers.toThrowAnyError = function() { | ||
var threwError = false; | ||
@@ -289,0 +289,0 @@ try { |
{ | ||
"name": "jasmine-expect", | ||
"version": "1.22.0", | ||
"version": "1.22.2", | ||
"description": "35+ additional matchers for the Jasmine BDD JavaScript test library", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -52,3 +52,3 @@ # Jasmine-Matchers | ||
expect(fn).toThrowError(); | ||
expect(fn).toThrowAnyError(); | ||
expect(fn).toThrowErrorOfType(string); | ||
@@ -55,0 +55,0 @@ |
@@ -8,3 +8,3 @@ // Errors | ||
*/ | ||
matchers.toThrowError = function() { | ||
matchers.toThrowAnyError = function() { | ||
var threwError = false; | ||
@@ -11,0 +11,0 @@ try { |
describe('Errors', function() { | ||
describe('toThrowError', function () { | ||
describe('toThrowAnyError', function () { | ||
it('asserts value is a function which will error when called a particular way', function () { | ||
expect(function(){ throw new Error('wut?'); }).toThrowError(); | ||
expect(function(){ return badReference.someValue }).toThrowError(); | ||
expect(function(){}).not.toThrowError(); | ||
expect(function(){ throw new Error('wut?'); }).toThrowAnyError(); | ||
expect(function(){ return badReference.someValue }).toThrowAnyError(); | ||
expect(function(){}).not.toThrowAnyError(); | ||
}); | ||
@@ -9,0 +9,0 @@ }); |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
63128
1