Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

clearbit-jsr-mocks

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clearbit-jsr-mocks - npm Package Compare versions

Comparing version 3.1.1 to 3.2.0

2

package.json
{
"name": "clearbit-jsr-mocks",
"version": "3.1.1",
"version": "3.2.0",
"description": "jsr-mocks",

@@ -5,0 +5,0 @@ "main": "build/jsr-promise.js",

@@ -14,6 +14,7 @@ # clearbit-jsr-mocks

```javascript
const yourMock = { foo: 'bar' };
const remoting = vfr(
new vfrMocks({
getAccounts: {
method: (_) -> {...yourMock}
method: (arg) => yourMock
}

@@ -20,0 +21,0 @@ })

@@ -16,2 +16,18 @@ const { vfrMocks, vfr } = require('../src/jsr-promise.es6');

test('Handles session timeout', async () => {
const mocks = new vfrMocks({
foo: {
method: function() {},
event: { type: 'exception', message: 'expected failure' }
}
});
const jsr = vfr(mocks);
try {
const res = await jsr({ method: 'foo', args: ['bar'] });
expect(res).toBe(undefined);
} catch (error) {
expect(error.message).toEqual('expected failure');
}
});
test('Can pass options to Remoting', async () => {

@@ -18,0 +34,0 @@ const mocks = new vfrMocks({

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