Skip to content

Commit 221d42a

Browse files
authored
Upgrade sinon to ^7.4.1, sinon-chai to ^3.3.0 (#503)
* Upgrade sinon to ^5.1.1 and sinon-chai to ^3.1.0 * Upgrade sinon to ^6.3.5 * Upgrade sinon to ^7.4.1
1 parent c28151a commit 221d42a

File tree

6 files changed

+36
-65
lines changed

6 files changed

+36
-65
lines changed

package-lock.json

Lines changed: 30 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"eslint-plugin-import": "^2.18.2",
6161
"mocha": "^6.1.4",
6262
"nyc": "^14.1.1",
63-
"sinon": "^4.5.0",
64-
"sinon-chai": "^2.8.0"
63+
"sinon": "^7.4.1",
64+
"sinon-chai": "^3.3.0"
6565
}
6666
}

test/bot-events.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ chai.should();
1414
chai.use(sinonChai);
1515

1616
describe('Bot Events', function () {
17-
const sandbox = sinon.sandbox.create({
17+
const sandbox = sinon.createSandbox({
1818
useFakeTimers: false,
1919
useFakeServer: false
2020
});

test/bot.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ chai.should();
1616
chai.use(sinonChai);
1717

1818
describe('Bot', function () {
19-
const sandbox = sinon.sandbox.create({
19+
const sandbox = sinon.createSandbox({
2020
useFakeTimers: false,
2121
useFakeServer: false
2222
});

test/cli.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ chai.should();
1111
chai.use(sinonChai);
1212

1313
describe('CLI', function () {
14-
const sandbox = sinon.sandbox.create({
14+
const sandbox = sinon.createSandbox({
1515
useFakeTimers: false,
1616
useFakeServer: false
1717
});

test/create-bots.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ chai.should();
1414
chai.use(sinonChai);
1515

1616
describe('Create Bots', function () {
17-
const sandbox = sinon.sandbox.create({
17+
const sandbox = sinon.createSandbox({
1818
useFakeTimers: false,
1919
useFakeServer: false
2020
});

0 commit comments

Comments
 (0)