New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jasmine-expect

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jasmine-expect - npm Package Compare versions

Comparing version 1.22.0 to 1.22.2

2

dist/jasmine-matchers.js

@@ -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

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