Skip to content

Commit

Permalink
add callback case to test-digitalwrite
Browse files Browse the repository at this point in the history
  • Loading branch information
vaishnavachath committed Jul 2, 2018
1 parent 0dbbc62 commit 5f27270
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/test-digitalwrite.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,14 @@ exports.testdigitalwrite1 = function (test) {
});
}
test.done();
}
exports.testdigitalwrite2 = function (test) {
test.expect(pinKeys.length);
for (var x in pinKeys) {
b.digitalWrite(pinKeys[x], b.LOW, function () {
test.ok(true);
});
if (x == pinKeys.length - 1)
test.done();
}
}

0 comments on commit 5f27270

Please sign in to comment.