Added some tests
This commit is contained in:
19
tests/node_modules/tap-spec/bin/cmd.js
generated
vendored
Executable file
19
tests/node_modules/tap-spec/bin/cmd.js
generated
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
var tapSpec = require('../');
|
||||
var tapSpec = tapSpec();
|
||||
|
||||
process.stdin
|
||||
.pipe(tapSpec)
|
||||
.pipe(process.stdout);
|
||||
|
||||
process.on('exit', function (status) {
|
||||
|
||||
if (status === 1) {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
if (tapSpec.failed) {
|
||||
process.exit(1);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user