Skip to content

Commit d53032b

Browse files
author
Ben Demboski
authored
Merge pull request #15 from bendemboski/update-dependencies
Update dependencies
2 parents 4964307 + 1138c45 commit d53032b

File tree

3 files changed

+712
-772
lines changed

3 files changed

+712
-772
lines changed

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@
2323
"test": "npm run mocha && npm run lint"
2424
},
2525
"devDependencies": {
26-
"bluebird": "^3.5.0",
27-
"chai": "^3.5.0",
26+
"bluebird": "^3.7.2",
27+
"chai": "^4.2.0",
2828
"dotenv-cli": "^3.1.0",
29-
"eslint": "^3.17.1",
30-
"lodash": "^4.17.4",
31-
"mocha": "^3.2.0",
32-
"mock-require": "^2.0.1",
29+
"eslint": "^6.8.0",
30+
"lodash": "^4.17.15",
31+
"mocha": "^7.1.2",
32+
"mock-require": "^3.0.3",
3333
"release-it": "^13.5.1",
3434
"release-it-lerna-changelog": "^2.1.2",
35-
"sinon": "^1.17.7"
35+
"sinon": "^9.0.2"
3636
},
3737
"publishConfig": {
3838
"registry": "https://registry.npmjs.org"

tests/unit/handler-test.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,17 @@ const { join, resolve } = require('path');
66
const subject = require('../../lib/handler');
77

88
describe('handler', () => {
9-
let sandbox;
109
let mockFiles;
1110
let mockDirs;
1211

1312
before(() => {
14-
sandbox = sinon.sandbox.create();
1513
// Stub accessSync to act like only files in mockFiles exist
16-
sandbox.stub(fs, 'accessSync', path => {
14+
sinon.stub(fs, 'accessSync').callsFake(path => {
1715
if (mockFiles.indexOf(path) === -1 && mockDirs.indexOf(path) === -1) {
1816
throw new Error('Doesn\'t exist');
1917
}
2018
});
21-
sandbox.stub(fs, 'statSync', path => ({
19+
sinon.stub(fs, 'statSync').callsFake(path => ({
2220
isFile() {
2321
return mockFiles.indexOf(path) !== -1;
2422
},
@@ -29,7 +27,7 @@ describe('handler', () => {
2927
});
3028

3129
after(() => {
32-
sandbox.restore();
30+
sinon.restore();
3331
});
3432

3533
beforeEach(() => {

0 commit comments

Comments
 (0)