Skip to content

Commit c2905f6

Browse files
committed
Update example module to really survive
1 parent 123fcdf commit c2905f6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

example-module/src/survived.js

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ module.exports = {
1010
increments (a) {
1111
a++
1212
a--
13-
return 1
1413
},
1514
condBound (a) {
1615
if (a < 10) {

example-module/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ assert.strictEqual(survived.math(2, 3), 2)
1919
// Increments
2020
assert.strictEqual(killed.increments(1), 1)
2121
assert.strictEqual(killed.increments(10), 10)
22-
assert.strictEqual(survived.increments(1), 1)
22+
assert.strictEqual(survived.increments(1), undefined)
2323

2424
// Conditionals boundary
2525
assert.strictEqual(killed.condBound(5), 5)

0 commit comments

Comments
 (0)