Comparing version 7.2.7 to 7.3.0
@@ -0,1 +1,11 @@ | ||
7.3.0 / 2019-03-20 | ||
================== | ||
* Simplify Circle CI setup | ||
* Add a Docker Compose config file for testing the setup locally | ||
* Inject createStubInstance and fake functionality | ||
* Remove unused prop 'injectIntoThis' | ||
* Fix #1974 by upgrading to @sinonjs/samsam@3.3.0 | ||
7.2.7 / 2019-03-04 | ||
@@ -2,0 +12,0 @@ ================== |
@@ -5,3 +5,3 @@ "use strict"; | ||
var createSandbox = require("./sinon/create-sandbox"); | ||
var deprecated = require("./sinon/util/core/deprecated"); | ||
var deprecated = require("@sinonjs/commons").deprecated; | ||
var extend = require("./sinon/util/core/extend"); | ||
@@ -8,0 +8,0 @@ var fakeTimers = require("./sinon/util/fake-timers"); |
@@ -74,2 +74,22 @@ "use strict"; | ||
obj.createStubInstance = function() { | ||
return sandbox.createStubInstance.apply(sandbox, arguments); | ||
}; | ||
obj.fake = function() { | ||
return sandbox.fake.apply(null, arguments); | ||
}; | ||
obj.replace = function() { | ||
return sandbox.replace.apply(null, arguments); | ||
}; | ||
obj.replaceSetter = function() { | ||
return sandbox.replaceSetter.apply(null, arguments); | ||
}; | ||
obj.replaceGetter = function() { | ||
return sandbox.replaceGetter.apply(null, arguments); | ||
}; | ||
if (sandbox.clock) { | ||
@@ -76,0 +96,0 @@ obj.clock = sandbox.clock; |
"use strict"; | ||
module.exports = { | ||
injectIntoThis: true, | ||
injectInto: null, | ||
properties: ["spy", "stub", "mock", "clock", "server", "requests"], | ||
properties: [ | ||
"spy", | ||
"stub", | ||
"mock", | ||
"clock", | ||
"server", | ||
"requests", | ||
"fake", | ||
"replace", | ||
"replaceSetter", | ||
"replaceGetter", | ||
"createStubInstance" | ||
], | ||
useFakeTimers: true, | ||
useFakeServer: true | ||
}; |
{ | ||
"name": "sinon", | ||
"description": "JavaScript test spies, stubs and mocks.", | ||
"version": "7.2.7", | ||
"version": "7.3.0", | ||
"homepage": "https://sinonjs.org/", | ||
@@ -25,2 +25,3 @@ "author": "Christian Johansen", | ||
"test-esm-bundle": "node test/es2015/check-esm-bundle-is-runnable.js", | ||
"test-docker-image": "docker-compose up", | ||
"test": "run-s test-node test-headless test-webworker test-esm", | ||
@@ -59,5 +60,5 @@ "check-dependencies": "dependency-check package.json --unused --no-dev --ignore-module coveralls --ignore-module esm", | ||
"dependencies": { | ||
"@sinonjs/commons": "^1.3.1", | ||
"@sinonjs/commons": "^1.4.0", | ||
"@sinonjs/formatio": "^3.2.1", | ||
"@sinonjs/samsam": "^3.2.0", | ||
"@sinonjs/samsam": "^3.3.0", | ||
"diff": "^3.5.0", | ||
@@ -64,0 +65,0 @@ "lolex": "^3.1.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
7067002
105392
47
Updated@sinonjs/commons@^1.4.0
Updated@sinonjs/samsam@^3.3.0