Skip to content

Commit b505975

Browse files
committed
Test that we pass undefined to callbacks
Resolves #17
1 parent 971eb3a commit b505975

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

test/lib/backend-test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ module.exports = function(options) {
3434
'it works': function(err) {
3535
assert.ifError(err);
3636
},
37+
'we get passed `undefined`': function(err, ret) {
38+
assert.isUndefined(ret);
39+
},
3740
'the directory exists': function() {
3841
// Evil sync thing
3942
assert.doesNotThrow(function() {
@@ -66,6 +69,9 @@ module.exports = function(options) {
6669
'it works': function(err) {
6770
assert.ifError(err);
6871
},
72+
'we get passed `undefined`': function(err, ret) {
73+
assert.isUndefined(ret);
74+
},
6975
'the test/ directory exists again': function() {
7076
// Evil sync thing
7177
assert.doesNotThrow(function() {

test/lib/branch-test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ module.exports = function(options) {
3131
'it works': function(err) {
3232
assert.ifError(err);
3333
},
34+
'we get passed `undefined`': function(err, ret) {
35+
assert.isUndefined(ret);
36+
},
3437
'the directory exists': function() {
3538
// Evil sync thing
3639
assert.doesNotThrow(function() {

0 commit comments

Comments
 (0)