rewiremock
Advanced tools
Comparing version 1.0.1 to 1.0.2
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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55991
1348