Skip to content

Commit 6ef85f9

Browse files
committed
Update deps, including example apps
1 parent 7c96564 commit 6ef85f9

35 files changed

+71538
-19243
lines changed

examples/babel/package-lock.json

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

examples/babel/package.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,18 @@
66
},
77
"devDependencies": {
88
"babel-cli": "^6.26.0",
9-
"babel-core": "^6.26.0",
9+
"babel-core": "^6.26.3",
1010
"babel-preset-es2015": "^6.24.1",
11-
"mocha": "^5.0.1",
12-
"semver": "^5.3.0",
11+
"mocha": "^10.1.0",
1312
"testdouble": "file:../.."
13+
},
14+
"standard": {
15+
"globals": [
16+
"td",
17+
"describe",
18+
"beforeEach",
19+
"afterEach",
20+
"it"
21+
]
1422
}
1523
}

examples/babel/test/helper.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
import td from 'testdouble'
2-
import semver from 'semver'
32

43
global.context = describe
54
global.td = td
65

7-
const nodeVersion = semver(process.version)
8-
global.NODE_JS = {
9-
AT_LEAST_6: nodeVersion.major >= 6
10-
}
11-
126
afterEach(() => td.reset())
13-

examples/babel/test/lib/calculator-test.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,20 @@ describe('Calculator', () => {
88
Multiplier = td.replace('../../lib/multiplier').default
99
divider = td.replace('../../lib/divider').default
1010
const Calculator = require('../../lib/calculator').default
11-
subject = new Calculator
11+
subject = new Calculator()
1212
})
1313

1414
describe('#calculate', () => {
15-
if (!NODE_JS) return 'module replacement is not supported!'
16-
1715
it('delegates to an Adder', () => {
18-
td.when(Adder.prototype.add(4,9)).thenReturn('yay math!')
16+
td.when(Adder.prototype.add(4, 9)).thenReturn('yay math!')
1917

2018
result = subject.calculate('add', 4, 9)
2119

2220
assert.equal(result, 'yay math!')
2321
})
2422

2523
it('delegates to a Subtractor', () => {
26-
td.when(Subtractor.prototype.subtract(9,8)).thenReturn('minus math!')
24+
td.when(Subtractor.prototype.subtract(9, 8)).thenReturn('minus math!')
2725

2826
result = subject.calculate('subtract', 9, 8)
2927

0 commit comments

Comments
 (0)