runtime-shell
Version:
Some useful shell commands for runtime.js
26 lines (20 loc) • 450 B
JavaScript
;
const test = require('tape');
const rshell = require('../');
test('is a function', function(t) {
t.equal(typeof rshell, 'function');
t.end();
});
test('has a version', function(t) {
t.equal(typeof rshell.version, 'string');
t.end();
});
test('creates shell commands without errors', function(t) {
try {
t.equal(rshell(), undefined);
} catch(e) {
t.fail();
}
t.end();
});
// TODO: 'runs shell commands' test