chai-sync-layer-suite
Advanced tools
Comparing version 0.3.0 to 0.4.0
{ | ||
"name": "chai-sync-layer-suite", | ||
"description": "Chai suite for sync-layer library", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"repository": { | ||
@@ -12,3 +12,3 @@ "type": "git", | ||
"dependencies": { | ||
"rewire-test-helpers": "^1.0.0-rc1" | ||
"rewire-test-helpers": "^1.0.0-rc2" | ||
}, | ||
@@ -15,0 +15,0 @@ "devDependencies": { |
@@ -20,5 +20,2 @@ | ||
var rewireTestHelpers = require('rewire-test-helpers'); | ||
global.injectDependencies = rewireTestHelpers.injectDependencies; | ||
global.injectDependenciesFilter = rewireTestHelpers.injectDependenciesFilter; | ||
global.rewired = rewireTestHelpers.rewired; | ||
global.rewireMap = rewireTestHelpers.rewireMap; |
@@ -17,3 +17,3 @@ var describeSync = rewire('../describe_sync'); | ||
this.restoreDescribe = injectDependencies(describeSync, { | ||
this.restoreDescribe = rewireMap(describeSync, { | ||
describe: this.describe, | ||
@@ -20,0 +20,0 @@ beforeEach: this.beforeEach, |
@@ -8,3 +8,3 @@ var syncMatchers = rewire('../sync_matchers'); | ||
this.restoreMatchers = injectDependencies(syncMatchers, { | ||
this.restoreMatchers = rewireMap(syncMatchers, { | ||
preparePerformMatcherProperty: this.preparePerformMatcherProperty, | ||
@@ -11,0 +11,0 @@ prepareRequestMatcherMethod: this.prepareRequestMatcherMethod |
@@ -1,2 +0,2 @@ | ||
var RewireTestHelpers = require('rewire-test-helpers') | ||
var rewireMap = require('rewire-test-helpers').rewireMap | ||
@@ -35,4 +35,3 @@ var _global; | ||
}; | ||
this.__restoreRequests = | ||
RewireTestHelpers.injectDependencies(subject, {requests: requests}) | ||
this.__restoreRewired = rewireMap(subject, {requests: requests}) | ||
@@ -65,4 +64,4 @@ this.__syncRestoreFns = Object.keys(subject).reduce(function(acc, key) { | ||
if (typeof this.__restoreRequests === 'function') { | ||
this.__restoreRequests() | ||
if (typeof this.__restoreRewired === 'function') { | ||
this.__restoreRewired() | ||
} | ||
@@ -69,0 +68,0 @@ }); |
12495
293