Skip to content

Commit

Permalink
Remove unused prop 'injectIntoThis'
Browse files Browse the repository at this point in the history
Was not used anywhere in the code, except as setup in tests
  • Loading branch information
fatso83 committed Mar 12, 2019
1 parent fb5709f commit 73d2ac8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion lib/sinon/util/core/default-config.js
@@ -1,7 +1,6 @@
"use strict";

module.exports = {
injectIntoThis: true,
injectInto: null,
properties: ["spy", "stub", "mock", "clock", "server", "requests"],
useFakeTimers: true,
Expand Down
7 changes: 0 additions & 7 deletions test/sandbox-test.js
Expand Up @@ -1671,7 +1671,6 @@ describe("Sandbox", function() {
it("yields stub, mock as arguments", function() {
var sandbox = createSandbox(
sinonConfig({
injectIntoThis: false,
properties: ["stub", "mock"]
})
);
Expand All @@ -1686,7 +1685,6 @@ describe("Sandbox", function() {
it("yields spy, stub, mock as arguments", function() {
var sandbox = createSandbox(
sinonConfig({
injectIntoThis: false,
properties: ["spy", "stub", "mock"]
})
);
Expand All @@ -1701,7 +1699,6 @@ describe("Sandbox", function() {
it("does not yield server when not faking xhr", function() {
var sandbox = createSandbox(
sinonConfig({
injectIntoThis: false,
properties: ["server", "stub", "mock"],
useFakeServer: false
})
Expand Down Expand Up @@ -1740,7 +1737,6 @@ describe("Sandbox", function() {
it("yields server when faking xhr", function() {
var sandbox = createSandbox(
sinonConfig({
injectIntoThis: false,
properties: ["server", "stub", "mock"]
})
);
Expand All @@ -1756,7 +1752,6 @@ describe("Sandbox", function() {
it("uses serverWithClock when faking xhr", function() {
var sandbox = createSandbox(
sinonConfig({
injectIntoThis: false,
properties: ["server"],
useFakeServer: fakeServerWithClock
})
Expand Down Expand Up @@ -1784,7 +1779,6 @@ describe("Sandbox", function() {
it("yields clock when faking timers", function() {
var sandbox = createSandbox(
sinonConfig({
injectIntoThis: false,
properties: ["server", "clock"]
})
);
Expand Down Expand Up @@ -1846,7 +1840,6 @@ describe("Sandbox", function() {
it("fakes specified timers", function() {
var sandbox = createSandbox(
sinonConfig({
injectIntoThis: false,
properties: ["clock"],
useFakeTimers: { toFake: ["Date", "setTimeout"] }
})
Expand Down
2 changes: 0 additions & 2 deletions test/util/core/get-config-test.js
Expand Up @@ -12,7 +12,6 @@ describe("core/util/getConfig", function() {
var config = getConfig();

refute.same(config, defaultConfig);
assert.equals(config.injectIntoThis, defaultConfig.injectIntoThis);
assert.equals(config.injectInto, defaultConfig.injectInto);
assert.equals(config.properties, defaultConfig.properties);
assert.equals(config.useFakeTimers, defaultConfig.useFakeTimers);
Expand All @@ -26,7 +25,6 @@ describe("core/util/getConfig", function() {
});

refute.same(config, defaultConfig);
assert.equals(config.injectIntoThis, defaultConfig.injectIntoThis);
assert.equals(config.injectInto, defaultConfig.injectInto);
assert.equals(config.properties, ["stub", "mock"]);
assert.equals(config.useFakeTimers, defaultConfig.useFakeTimers);
Expand Down

0 comments on commit 73d2ac8

Please sign in to comment.