sinon-test
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -1,5 +0,7 @@ | ||
1.0.0 / 2017-01-02 | ||
================== | ||
* Update README with info on browser build | ||
* Merge pull request #32 from cbaclig/rm-get-config-dep-warning | ||
* Removing dependency on deprecated sinon.getConfig() method | ||
* Merge pull request #30 from fearphage/add-browser-builds | ||
@@ -6,0 +8,0 @@ * fix precommit hook to not run for 0 files |
@@ -12,10 +12,4 @@ /** | ||
var utils = require("./utils"); | ||
var getConfig = require("./get-config"); | ||
var slice = Array.prototype.slice; | ||
var DEFAULT_CONFIG = { | ||
injectIntoThis: true, | ||
injectInto: null, | ||
properties: ["spy", "stub", "mock", "clock", "server", "requests"], | ||
useFakeTimers: true, | ||
useFakeServer: true | ||
}; | ||
@@ -78,3 +72,3 @@ function finish(sandbox, error, dontThrow) { | ||
function callSandboxedFn(context, args, fn, handler) { | ||
config = sinon.getConfig(config || DEFAULT_CONFIG); | ||
config = getConfig(config); | ||
config.injectInto = config.injectIntoThis && context || config.injectInto; | ||
@@ -81,0 +75,0 @@ var sandbox = sinon.sandbox.create(config); |
{ | ||
"name": "sinon-test", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"build": "rollup -c | uglifyjs --mangle --compress if_return,dead_code,unsafe,unsafe_comps,join_vars,comparisons,loops,collapse_vars,cascade,pure_getters > dist/sinon-test.js", | ||
"build": "run-s build:dist-folder build:bundle", | ||
"build:bundle": "rollup -c | uglifyjs --mangle --compress if_return,dead_code,unsafe,unsafe_comps,join_vars,comparisons,loops,collapse_vars,cascade,pure_getters > dist/sinon-test.js", | ||
"build:dist-folder": "mkdirp dist", | ||
"coverage": "nyc report --reporter text-lcov | coveralls", | ||
"test": "nyc mocha", | ||
"lint": "eslint .", | ||
"eslint-pre-commit": "./scripts/eslint-pre-commit" | ||
"eslint-pre-commit": "./scripts/eslint-pre-commit", | ||
"prepublish": "run-p test lint build" | ||
}, | ||
"greenkeeper": { | ||
"ignore": [ | ||
"rollup" | ||
] | ||
}, | ||
"pre-commit": [ | ||
@@ -27,8 +35,10 @@ "eslint-pre-commit" | ||
"eslint-config-defaults": "^9.0.0", | ||
"mkdirp": "^0.5.1", | ||
"mocha": "^3.0.2", | ||
"nyc": "^8.3.0", | ||
"npm-run-all": "^4.0.2", | ||
"nyc": "^10.1.2", | ||
"phantomjs-prebuilt": "^2.1.7", | ||
"pre-commit": "^1.1.2", | ||
"rollup": "^0.36.1", | ||
"rollup-plugin-commonjs": "^5.0.4", | ||
"rollup": "^0.41.4", | ||
"rollup-plugin-commonjs": "^8.0.2", | ||
"sinon": "^2.0.0-pre", | ||
@@ -35,0 +45,0 @@ "uglify-js": "^2.7.3" |
74591
24
1163
14