Skip to content

Commit ebaea0b

Browse files
committed
Added lib.init unit test
1 parent d5bc0ca commit ebaea0b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/lib.spec.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ describe('lib end-to-end', function() {
5151
});
5252
})
5353

54-
// it('', function(done) {
55-
// });
54+
it('init should not process.exit when called as a lib', function() {
55+
var code = lib.init();
56+
expect(!isNaN(code)).toBe(true);
57+
});
5658
});

0 commit comments

Comments
 (0)