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

unexpected-sinon

Package Overview
Dependencies
Maintainers
2
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unexpected-sinon - npm Package Compare versions

Comparing version 6.4.2 to 7.0.0

.jshintignore

11

documentation/assertions/spy/threw.md

@@ -51,9 +51,8 @@ Passes if the spy threw the given exception.

expected stub always threw /waat/
expected invocations( stub(), stub() ) to have values satisfying 'threw', /waat/
invocations(
stub(), // expected stub() threw /waat/
// expected TypeError('wat') to satisfy /waat/
stub()
)
invocations(
stub(), // expected stub() threw /waat/
// expected TypeError('wat') to satisfy /waat/
stub()
)
```

@@ -18,8 +18,7 @@ Passes if the spy was ever called with obj as its `this` value.

expected spy was called on {}
expected invocations( spy() ) to have values satisfying 'was called on', {}
invocations(
spy() // expected spy() was called on {}
// expected spy to be called with {} as this but was called with { spy: spy }
)
invocations(
spy() // expected spy() was called on {}
// expected spy to be called with {} as this but was called with { spy: spy }
)
```

@@ -44,9 +43,8 @@

expected spy was always called on { spy: spy }
expected invocations( spy(), spy() ) to have values satisfying 'was called on', { spy: spy }
invocations(
spy(),
spy() // expected spy() was called on { spy: spy }
// expected spy to be called with { spy: spy } as this but was called with {}
)
invocations(
spy(),
spy() // expected spy() was called on { spy: spy }
// expected spy to be called with { spy: spy } as this but was called with {}
)
```

@@ -24,3 +24,4 @@ Passes if the spy was called exactly the specified number of times.

expected spy was called times 2
expected invocations( spy( 41, 42 ), spy( 41, 43 ), spy( 41, 44 ), spy( 41, 45 ) ) to have length 2
expected invocations( spy( 41, 42 ), spy( 41, 43 ), spy( 41, 44 ), spy( 41, 45 ) )
to have length 2
expected 4 to be 2

@@ -27,0 +28,0 @@ ```

@@ -17,13 +17,11 @@ Passes if the spy was called with the provided arguments.

expected spy was called with 'baz', { foo: 'bar' }
expected invocations( spy( { foo: 'bar' }, 'baz', 'qux', 'quux' ) )
to have values satisfying { 0: 'baz', 1: { foo: 'bar' } }
invocations(
spy(
{ foo: 'bar' }, // should equal 'baz'
'baz', // should equal { foo: 'bar' }
'qux',
'quux'
)
invocations(
spy(
{ foo: 'bar' }, // should equal 'baz'
'baz', // should equal { foo: 'bar' }
'qux',
'quux'
)
)
```

@@ -49,14 +47,14 @@

```output
expected spy was always called with { foo: 'bar' }, 'baz', expect.it('to be truthy')
expected spyCalls to have values satisfying { 0: { foo: 'bar' }, 1: 'baz', 2: expect.it('to be truthy') }
expected spy
was always called with { foo: 'bar' }, 'baz', expect.it('to be truthy')
invocations(
spy( { foo: 'bar' }, 'baz', 'qux', 'quux' ),
spy( { foo: 'bar' }, 'baz', 'qux', 'quux' ),
spy(
{ foo: 'bar' },
'baz',
undefined // expected undefined to be truthy
)
invocations(
spy( { foo: 'bar' }, 'baz', 'qux', 'quux' ),
spy( { foo: 'bar' }, 'baz', 'qux', 'quux' ),
spy(
{ foo: 'bar' },
'baz',
undefined // expected undefined to be truthy
)
)
```

@@ -80,14 +78,13 @@

```output
expected spy was called with exactly { foo: 'bar' }, 'baz', expect.it('to be truthy')
expected invocations( spy( { foo: 'bar' }, 'baz', 'qux', 'quux' ) )
to have values satisfying [ { foo: 'bar' }, 'baz', expect.it('to be truthy') ]
expected spy
was called with exactly { foo: 'bar' }, 'baz', expect.it('to be truthy')
invocations(
spy(
{ foo: 'bar' },
'baz',
'qux',
'quux' // should be removed
)
invocations(
spy(
{ foo: 'bar' },
'baz',
'qux',
'quux' // should be removed
)
)
```

@@ -114,14 +111,14 @@

```output
expected spy was always called with exactly { foo: 'bar' }, 'baz', expect.it('to be truthy')
expected spyCalls to have values satisfying [ { foo: 'bar' }, 'baz', expect.it('to be truthy') ]
expected spy
was always called with exactly { foo: 'bar' }, 'baz', expect.it('to be truthy')
invocations(
spy( { foo: 'bar' }, 'baz', 'qux' ),
spy( { foo: 'bar' }, 'baz', 'qux' ),
spy(
{ foo: 'bar' },
'baz',
// expected undefined to be truthy
)
invocations(
spy( { foo: 'bar' }, 'baz', 'qux' ),
spy( { foo: 'bar' }, 'baz', 'qux' ),
spy(
{ foo: 'bar' },
'baz',
// expected undefined to be truthy
)
)
```

@@ -35,3 +35,6 @@ Passes if spy was called at least once.

expected spy was not called
expected invocations( spy( 42, 42 ) ) to be empty
invocations(
spy( 42, 42 ) // should be removed
)
```

@@ -37,3 +37,3 @@ // Copyright (c) 2013 Sune Simonsen <sune@we-knowhow.dk>

var objectIs = Object.is || function (a, b) {
var objectIs = Object.is || function (a, b) {
// Polyfill from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is

@@ -118,3 +118,3 @@ if (a === 0 && b === 0) {

return output;
},
}
});

@@ -171,4 +171,4 @@

expect.addAssertion('spy', 'was [not] called', function (expect, subject) {
this.errorMode = this.flags.not ? 'nested' : 'default';
expect(getCalls(subject), '[!not] to be empty');
this.errorMode = this.flags.not ? 'defaultOrNested' : 'default';
expect(getCalls(subject), '[!not] to satisfy', []);
});

@@ -241,3 +241,3 @@

expect.addAssertion('spyCall', 'was called on', function (expect, subject, target) {
this.errorMode = 'nested';
this.errorMode = 'defaultOrNested';
if (subject.thisValue !== target) {

@@ -282,3 +282,3 @@ expect.fail("expected {0} to be called with {1} as this but was called with {2}",

expect.addAssertion('spy', 'was [always] called on', function (expect, subject, target) {
this.errorMode = 'nested';
this.errorMode = 'defaultOrNested';

@@ -311,3 +311,3 @@ var calls = getCalls(subject);

expect.addAssertion('spy', 'was [always] called with [exactly]', function (expect, subject) {
this.errorMode = 'nested';
this.errorMode = 'defaultOrNested';
var args;

@@ -345,3 +345,3 @@ if (this.flags.exactly) {

expect.addAssertion('spy', 'was never called with', function (expect, subject) {
this.errorMode = 'nested';
this.errorMode = 'defaultOrNested';
var args = {};

@@ -370,3 +370,3 @@ for (var i = 2; i < arguments.length; i += 1) {

expect.addAssertion('spy', '[always] threw', function (expect, subject, value) {
this.errorMode = 'nested';
this.errorMode = 'defaultOrNested';

@@ -373,0 +373,0 @@ var calls = getCalls(subject);

{
"name": "unexpected-sinon",
"version": "6.4.2",
"version": "7.0.0",
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>",

@@ -20,5 +20,10 @@ "keywords": [

"scripts": {
"test": "./node_modules/.bin/mocha --require ./test/common",
"lint": "jshint .",
"test": "mocha --require ./test/common && npm run lint",
"travis": "npm test && npm run coverage && (<coverage/lcov.info coveralls || true) && npm run generate-site",
"test-browser": "serve .",
"coverage": "NODE_ENV=development istanbul cover _mocha -- --reporter dot",
"generate-site": "node ./generate-site.js",
"update-examples": "node ./generate-site.js --update-examples"
"update-examples": "node ./generate-site.js --update-examples",
"deploy-site": "deploy-site"
},

@@ -28,11 +33,14 @@ "main": "./lib/unexpected-sinon.js",

"sinon": "*",
"unexpected": "^8.5.1 || 9"
"unexpected": "^9.7.0"
},
"devDependencies": {
"mocha": "^2.0.1",
"coveralls": "2.11.3",
"istanbul": "0.3.17",
"jshint": "2.8.0",
"mocha": "2.2.5",
"serve": "*",
"sinon": "1.9.1",
"unexpected": "8.5.1",
"unexpected-documentation-site-generator": "2.5.1"
"sinon": "1.16.1",
"unexpected": "9.7.0",
"unexpected-documentation-site-generator": "2.5.2"
}
}

@@ -0,6 +1,5 @@

/*global sinon:true, unexpected:true, unexpectedSinon:true*/
sinon = require('sinon');
unexpected = require('unexpected').clone();
unexpectedSinon = process.env.COVERAGE ?
require('../lib-cov/unexpected-sinon') :
require('../lib/unexpected-sinon');
unexpectedSinon = require('../lib/unexpected-sinon');
unexpected.installPlugin(unexpectedSinon);

@@ -96,9 +96,8 @@ /*global unexpected*/

"expected stub always threw /waat/\n" +
" expected invocations( stub(), stub() ) to have values satisfying 'threw', /waat/\n" +
"\n" +
" invocations(\n" +
" stub(), // expected stub() threw /waat/\n" +
" // expected TypeError('wat') to satisfy /waat/\n" +
" stub()\n" +
" )"
"invocations(\n" +
" stub(), // expected stub() threw /waat/\n" +
" // expected TypeError('wat') to satisfy /waat/\n" +
" stub()\n" +
")"
);

@@ -127,8 +126,7 @@ }

"expected spy was called on {}\n" +
" expected invocations( spy() ) to have values satisfying 'was called on', {}\n" +
"\n" +
" invocations(\n" +
" spy() // expected spy() was called on {}\n" +
" // expected spy to be called with {} as this but was called with { spy: spy }\n" +
" )"
"invocations(\n" +
" spy() // expected spy() was called on {}\n" +
" // expected spy to be called with {} as this but was called with { spy: spy }\n" +
")"
);

@@ -151,9 +149,8 @@ }

"expected spy was always called on { spy: spy }\n" +
" expected invocations( spy(), spy() ) to have values satisfying 'was called on', { spy: spy }\n" +
"\n" +
" invocations(\n" +
" spy(),\n" +
" spy() // expected spy() was called on { spy: spy }\n" +
" // expected spy to be called with { spy: spy } as this but was called with {}\n" +
" )"
"invocations(\n" +
" spy(),\n" +
" spy() // expected spy() was called on { spy: spy }\n" +
" // expected spy to be called with { spy: spy } as this but was called with {}\n" +
")"
);

@@ -192,3 +189,4 @@ }

"expected spy was called times 2\n" +
" expected invocations( spy( 41, 42 ), spy( 41, 43 ), spy( 41, 44 ), spy( 41, 45 ) ) to have length 2\n" +
" expected invocations( spy( 41, 42 ), spy( 41, 43 ), spy( 41, 44 ), spy( 41, 45 ) )\n" +
" to have length 2\n" +
" expected 4 to be 2"

@@ -224,13 +222,11 @@ );

"expected spy was called with 'baz', { foo: 'bar' }\n" +
" expected invocations( spy( { foo: 'bar' }, 'baz', 'qux', 'quux' ) )\n" +
" to have values satisfying { 0: 'baz', 1: { foo: 'bar' } }\n" +
"\n" +
" invocations(\n" +
" spy(\n" +
" { foo: 'bar' }, // should equal 'baz'\n" +
" 'baz', // should equal { foo: 'bar' }\n" +
" 'qux',\n" +
" 'quux'\n" +
" )\n" +
" )"
"invocations(\n" +
" spy(\n" +
" { foo: 'bar' }, // should equal 'baz'\n" +
" 'baz', // should equal { foo: 'bar' }\n" +
" 'qux',\n" +
" 'quux'\n" +
" )\n" +
")"
);

@@ -255,14 +251,14 @@ }

expect(e, "to have message",
"expected spy was always called with { foo: 'bar' }, 'baz', expect.it('to be truthy')\n" +
" expected spyCalls to have values satisfying { 0: { foo: 'bar' }, 1: 'baz', 2: expect.it('to be truthy') }\n" +
"expected spy\n" +
"was always called with { foo: 'bar' }, 'baz', expect.it('to be truthy')\n" +
"\n" +
" invocations(\n" +
" spy( { foo: 'bar' }, 'baz', 'qux', 'quux' ),\n" +
" spy( { foo: 'bar' }, 'baz', 'qux', 'quux' ),\n" +
" spy(\n" +
" { foo: 'bar' },\n" +
" 'baz',\n" +
" undefined // expected undefined to be truthy\n" +
" )\n" +
" )"
"invocations(\n" +
" spy( { foo: 'bar' }, 'baz', 'qux', 'quux' ),\n" +
" spy( { foo: 'bar' }, 'baz', 'qux', 'quux' ),\n" +
" spy(\n" +
" { foo: 'bar' },\n" +
" 'baz',\n" +
" undefined // expected undefined to be truthy\n" +
" )\n" +
")"
);

@@ -284,14 +280,13 @@ }

expect(e, "to have message",
"expected spy was called with exactly { foo: 'bar' }, 'baz', expect.it('to be truthy')\n" +
" expected invocations( spy( { foo: 'bar' }, 'baz', 'qux', 'quux' ) )\n" +
" to have values satisfying [ { foo: 'bar' }, 'baz', expect.it('to be truthy') ]\n" +
"expected spy\n" +
"was called with exactly { foo: 'bar' }, 'baz', expect.it('to be truthy')\n" +
"\n" +
" invocations(\n" +
" spy(\n" +
" { foo: 'bar' },\n" +
" 'baz',\n" +
" 'qux',\n" +
" 'quux' // should be removed\n" +
" )\n" +
" )"
"invocations(\n" +
" spy(\n" +
" { foo: 'bar' },\n" +
" 'baz',\n" +
" 'qux',\n" +
" 'quux' // should be removed\n" +
" )\n" +
")"
);

@@ -316,14 +311,14 @@ }

expect(e, "to have message",
"expected spy was always called with exactly { foo: 'bar' }, 'baz', expect.it('to be truthy')\n" +
" expected spyCalls to have values satisfying [ { foo: 'bar' }, 'baz', expect.it('to be truthy') ]\n" +
"expected spy\n" +
"was always called with exactly { foo: 'bar' }, 'baz', expect.it('to be truthy')\n" +
"\n" +
" invocations(\n" +
" spy( { foo: 'bar' }, 'baz', 'qux' ),\n" +
" spy( { foo: 'bar' }, 'baz', 'qux' ),\n" +
" spy(\n" +
" { foo: 'bar' },\n" +
" 'baz',\n" +
" // expected undefined to be truthy\n" +
" )\n" +
" )"
"invocations(\n" +
" spy( { foo: 'bar' }, 'baz', 'qux' ),\n" +
" spy( { foo: 'bar' }, 'baz', 'qux' ),\n" +
" spy(\n" +
" { foo: 'bar' },\n" +
" 'baz',\n" +
" // expected undefined to be truthy\n" +
" )\n" +
")"
);

@@ -369,3 +364,6 @@ }

"expected spy was not called\n" +
" expected invocations( spy( 42, 42 ) ) to be empty"
"\n" +
"invocations(\n" +
" spy( 42, 42 ) // should be removed\n" +
")"
);

@@ -372,0 +370,0 @@ }

@@ -6,5 +6,7 @@ /*global describe, it, beforeEach, sinon, unexpected*/

expect = unexpected.clone();
expect.output.preferredWidth = 120;
spy = sinon.spy();
});
describe('was called', function () {

@@ -34,4 +36,9 @@ it('passes if spy was called at least once', function () {

}, "to throw exception",
"expected spy was not called\n" +
" expected invocations( spy( 42, { foo: \'bar\' } ), spy( \'baz\' ) ) to be empty");
"expected spy was not called\n" +
"\n" +
"invocations(\n" +
" spy( 42, { foo: 'bar' } ), // should be removed\n" +
" spy( 'baz' ) // should be removed\n" +
")"
);
});

@@ -149,3 +156,5 @@ });

it('passes if spy was called the new operator', function () {
/*jshint -W055 */
new spy();
/*jshint +W055 */
expect(spy,"was called with new");

@@ -234,9 +243,8 @@ });

"expected spy was always called on { spy: spy }\n" +
" expected invocations( spy(), spy() ) to have values satisfying 'was called on', { spy: spy }\n" +
"\n" +
" invocations(\n" +
" spy(),\n" +
" spy() // expected spy() was called on { spy: spy }\n" +
" // expected spy to be called with { spy: spy } as this but was called with null\n" +
" )");
"invocations(\n" +
" spy(),\n" +
" spy() // expected spy() was called on { spy: spy }\n" +
" // expected spy to be called with { spy: spy } as this but was called with null\n" +
")");
});

@@ -265,17 +273,15 @@ });

"expected spy was called with { foo: \'bar\' }, \'baz\', match(truthy)\n" +
" expected invocations( spy( { foo: 'baa' }, 'baz', true, false ) )\n" +
" to have values satisfying { 0: { foo: 'bar' }, 1: 'baz', 2: match(truthy) }\n" +
"\n" +
" invocations(\n" +
" spy(\n" +
" {\n" +
" foo: 'baa' // should equal 'bar'\n" +
" // -baa\n" +
" // +bar\n" +
" },\n" +
" 'baz',\n" +
" true,\n" +
" false\n" +
" )\n" +
" )");
"invocations(\n" +
" spy(\n" +
" {\n" +
" foo: 'baa' // should equal 'bar'\n" +
" // -baa\n" +
" // +bar\n" +
" },\n" +
" 'baz',\n" +
" true,\n" +
" false\n" +
" )\n" +
")");
});

@@ -298,13 +304,11 @@ });

"expected spy was always called with { foo: 'bar' }, 'baz', match(truthy)\n" +
" expected invocations( spy( 'something else' ), spy( { foo: 'bar' }, 'baz', true, false ) )\n" +
" to have values satisfying { 0: { foo: 'bar' }, 1: 'baz', 2: match(truthy) }\n" +
"\n" +
" invocations(\n" +
" spy(\n" +
" 'something else', // should equal { foo: 'bar' }\n" +
" undefined, // should equal 'baz'\n" +
" undefined // expected spy( 'something else' ) to satisfy { 0: { foo: 'bar' }, 1: 'baz', 2: match(truthy) }\n" +
" ),\n" +
" spy( { foo: 'bar' }, 'baz', true, false )\n" +
" )");
"invocations(\n" +
" spy(\n" +
" 'something else', // should equal { foo: 'bar' }\n" +
" undefined, // should equal 'baz'\n" +
" undefined // expected spy( 'something else' ) to satisfy { 0: { foo: 'bar' }, 1: 'baz', 2: match(truthy) }\n" +
" ),\n" +
" spy( { foo: 'bar' }, 'baz', true, false )\n" +
")");
});

@@ -325,7 +329,6 @@ });

"expected spy was never called with 'bar', match(truthy)\n" +
" expected invocations( spy( 'bar', 'true' ) ) to have values satisfying 'not to satisfy', { 0: 'bar', 1: match(truthy) }\n" +
"\n" +
" invocations(\n" +
" spy( 'bar', 'true' ) // expected spy( 'bar', 'true' ) not to satisfy { 0: 'bar', 1: match(truthy) }\n" +
" )");
"invocations(\n" +
" spy( 'bar', 'true' ) // expected spy( 'bar', 'true' ) not to satisfy { 0: 'bar', 1: match(truthy) }\n" +
")");
});

@@ -340,8 +343,7 @@

"expected spy was never called with 'bar'\n" +
" expected invocations( spy( 'foo' ), spy( 'bar', {} ) ) to have values satisfying 'not to satisfy', { 0: 'bar' }\n" +
"\n" +
" invocations(\n" +
" spy( 'foo' ),\n" +
" spy( 'bar', {} ) // expected spy( 'bar', {} ) not to satisfy { 0: 'bar' }\n" +
" )");
"invocations(\n" +
" spy( 'foo' ),\n" +
" spy( 'bar', {} ) // expected spy( 'bar', {} ) not to satisfy { 0: 'bar' }\n" +
")");
});

@@ -363,12 +365,11 @@ });

"expected spy was called with exactly 'foo', 'bar', match(truthy)\n" +
" expected invocations( spy( 'foo', 'bar', 'baz', 'qux' ) ) to have values satisfying [ 'foo', 'bar', match(truthy) ]\n" +
"\n" +
" invocations(\n" +
" spy(\n" +
" 'foo',\n" +
" 'bar',\n" +
" 'baz',\n" +
" 'qux' // should be removed\n" +
" )\n" +
" )");
"invocations(\n" +
" spy(\n" +
" 'foo',\n" +
" 'bar',\n" +
" 'baz',\n" +
" 'qux' // should be removed\n" +
" )\n" +
")");
});

@@ -391,14 +392,12 @@ });

"expected spy was always called with exactly 'foo', 'bar', match(truthy)\n" +
" expected invocations( spy( 'foo', 'bar', 'baz' ), spy( 'foo', 'bar', 'baz', 'qux' ) )\n" +
" to have values satisfying [ 'foo', 'bar', match(truthy) ]\n" +
"\n" +
" invocations(\n" +
" spy( 'foo', 'bar', 'baz' ),\n" +
" spy(\n" +
" 'foo',\n" +
" 'bar',\n" +
" 'baz',\n" +
" 'qux' // should be removed\n" +
" )\n" +
" )");
"invocations(\n" +
" spy( 'foo', 'bar', 'baz' ),\n" +
" spy(\n" +
" 'foo',\n" +
" 'bar',\n" +
" 'baz',\n" +
" 'qux' // should be removed\n" +
" )\n" +
")");
});

@@ -439,15 +438,14 @@ });

"expected stub threw { name: 'TypeError' }\n" +
" expected invocations( stub() ) to have values satisfying 'threw', { name: 'TypeError' }\n" +
"\n" +
" invocations(\n" +
" stub() // expected stub() threw { name: 'TypeError' }\n" +
" // expected Error() to satisfy { name: 'TypeError' }\n" +
" //\n" +
" // {\n" +
" // message: '',\n" +
" // name: 'Error' // should equal 'TypeError'\n" +
" // // -Error\n" +
" // // +TypeError\n" +
" // }\n" +
" )");
"invocations(\n" +
" stub() // expected stub() threw { name: 'TypeError' }\n" +
" // expected Error() to satisfy { name: 'TypeError' }\n" +
" //\n" +
" // {\n" +
" // message: '',\n" +
" // name: 'Error' // should equal 'TypeError'\n" +
" // // -Error\n" +
" // // +TypeError\n" +
" // }\n" +
")");
});

@@ -473,8 +471,7 @@ });

"expected stub threw Error()\n" +
" expected invocations( stub() ) to have values satisfying 'threw', Error()\n" +
"\n" +
" invocations(\n" +
" stub() // expected stub() threw Error()\n" +
" // expected TypeError() to satisfy Error()\n" +
" )");
"invocations(\n" +
" stub() // expected stub() threw Error()\n" +
" // expected TypeError() to satisfy Error()\n" +
")");
});

@@ -508,8 +505,7 @@ });

"expected spy always threw\n" +
" expected invocations( spy(), spy() ) to have values satisfying 'threw'\n" +
"\n" +
" invocations(\n" +
" spy(),\n" +
" spy() // expected spy() threw\n" +
" )");
"invocations(\n" +
" spy(),\n" +
" spy() // expected spy() threw\n" +
")");
});

@@ -537,16 +533,15 @@ });

"expected stub always threw { name: 'Error' }\n" +
" expected invocations( stub(), stub() ) to have values satisfying 'threw', { name: 'Error' }\n" +
"\n" +
" invocations(\n" +
" stub(),\n" +
" stub() // expected stub() threw { name: 'Error' }\n" +
" // expected TypeError() to satisfy { name: 'Error' }\n" +
" //\n" +
" // {\n" +
" // message: '',\n" +
" // name: 'TypeError' // should equal 'Error'\n" +
" // // -TypeError\n" +
" // // +Error\n" +
" // }\n" +
" )");
"invocations(\n" +
" stub(),\n" +
" stub() // expected stub() threw { name: 'Error' }\n" +
" // expected TypeError() to satisfy { name: 'Error' }\n" +
" //\n" +
" // {\n" +
" // message: '',\n" +
" // name: 'TypeError' // should equal 'Error'\n" +
" // // -TypeError\n" +
" // // +Error\n" +
" // }\n" +
")");
});

@@ -576,9 +571,8 @@ });

"expected stub always threw Error()\n" +
" expected invocations( stub(), stub() ) to have values satisfying 'threw', Error()\n" +
"\n" +
" invocations(\n" +
" stub(),\n" +
" stub() // expected stub() threw Error()\n" +
" // expected TypeError() to satisfy Error()\n" +
" )");
"invocations(\n" +
" stub(),\n" +
" stub() // expected stub() threw Error()\n" +
" // expected TypeError() to satisfy Error()\n" +
")");
});

@@ -585,0 +579,0 @@ });

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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