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

rewiremock

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rewiremock - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

_tests/es6.spec.js
import {expect} from 'chai';
import rewiremock from '../src/index';
import {addPlugin, _clearPlugins} from '../src/plugins';
import rewiremock, {addPlugin} from '../src/index';
import {_clearPlugins} from '../src/plugins';

@@ -6,0 +6,0 @@ import relativePlugin from '../src/plugins/relative';

import {expect} from 'chai';
import rewiremock from '../src/index';
import { addPlugin, _clearPlugins } from '../src/plugins';
import rewiremock, {addPlugin} from '../src/index';
import {_clearPlugins} from '../src/plugins';

@@ -6,0 +6,0 @@ import nodePlugin from '../src/plugins/nodejs';

import {expect} from 'chai';
import rewiremock from '../src/index';
import { addPlugin, _clearPlugins } from '../src/plugins';
import rewiremock, {addPlugin} from '../src/index';
import {_clearPlugins} from '../src/plugins';

@@ -6,0 +6,0 @@ import nodePlugin from '../src/plugins/nodejs';

import {expect} from 'chai';
import rewiremock from '../src/index';
import { addPlugin, _clearPlugins } from '../src/plugins';
import rewiremock, {addPlugin} from '../src/index';
import {_clearPlugins} from '../src/plugins';
import relativePlugin from '../src/plugins/relative';

@@ -5,0 +5,0 @@

import {expect} from 'chai';
import rewiremock from '../../src/index';
import { addPlugin, _clearPlugins } from '../../src/plugins';
import rewiremock, {addPlugin} from '../../src/index';
import {_clearPlugins} from '../../src/plugins';

@@ -6,0 +6,0 @@ import relativePlugin from '../../src/plugins/relative';

@@ -20,2 +20,4 @@ 'use strict';

var _plugins = require('./plugins');
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

@@ -36,3 +38,5 @@

API.overrideEntryPoint(module.parent);
// instance must be clear
API.mockModule.clear();
(0, _plugins._clearPlugins)();

@@ -39,0 +43,0 @@ var addPlugin = exports.addPlugin = API.addPlugin;

{
"name": "rewiremock",
"version": "1.0.1",
"version": "1.0.2",
"description": "Easy and es6 compatible mocking tool",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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