Skip to content

Commit a7dd95b

Browse files
authored
test: migrate sinon to v21 (#87)
1 parent b0555a9 commit a7dd95b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"eslint-config-eslint": "^13.0.0",
4545
"globals": "^16.4.0",
4646
"mocha": "^11.0.0",
47-
"sinon": "^1.17.2"
47+
"sinon": "^21.0.0"
4848
},
4949
"dependencies": {
5050
"dateformat": "^3.0.3",

tests/lib/release-ops.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ describe("ReleaseOps", () => {
487487
let tmpDir = null;
488488

489489
beforeEach(() => {
490-
sandbox = sinon.sandbox.create();
490+
sandbox = sinon.createSandbox();
491491
tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), "writeChangelog-"));
492492
process.chdir(tmpDir);
493493
});

tests/lib/shell-ops.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe("ShellOps", () => {
5757
let sandbox;
5858

5959
beforeEach(() => {
60-
sandbox = sinon.sandbox.create();
60+
sandbox = sinon.createSandbox();
6161
});
6262

6363
afterEach(() => {
@@ -109,7 +109,7 @@ describe("ShellOps", () => {
109109
let sandbox;
110110

111111
beforeEach(() => {
112-
sandbox = sinon.sandbox.create();
112+
sandbox = sinon.createSandbox();
113113
});
114114

115115
afterEach(() => {

0 commit comments

Comments
 (0)