Added some tests
This commit is contained in:
12
tests/node_modules/tape/example/stream/object.js
generated
vendored
Normal file
12
tests/node_modules/tape/example/stream/object.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
|
||||
var test = require('../../');
|
||||
var path = require('path');
|
||||
|
||||
test.createStream({ objectMode: true }).on('data', function (row) {
|
||||
console.log(JSON.stringify(row));
|
||||
});
|
||||
|
||||
process.argv.slice(2).forEach(function (file) {
|
||||
require(path.resolve(file));
|
||||
});
|
||||
10
tests/node_modules/tape/example/stream/tap.js
generated
vendored
Normal file
10
tests/node_modules/tape/example/stream/tap.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
var test = require('../../');
|
||||
var path = require('path');
|
||||
|
||||
test.createStream().pipe(process.stdout);
|
||||
|
||||
process.argv.slice(2).forEach(function (file) {
|
||||
require(path.resolve(file));
|
||||
});
|
||||
7
tests/node_modules/tape/example/stream/test/x_fail.js
generated
vendored
Normal file
7
tests/node_modules/tape/example/stream/test/x_fail.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
var test = require('../../../');
|
||||
test(function (t) {
|
||||
t.plan(1);
|
||||
t.equal('beep', 'boop');
|
||||
});
|
||||
13
tests/node_modules/tape/example/stream/test/y.js
generated
vendored
Normal file
13
tests/node_modules/tape/example/stream/test/y.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
var test = require('../../../');
|
||||
test(function (t) {
|
||||
t.plan(2);
|
||||
t.equal(1 + 1, 2);
|
||||
t.ok(true);
|
||||
});
|
||||
|
||||
test('wheee', function (t) {
|
||||
t.ok(true);
|
||||
t.end();
|
||||
});
|
||||
Reference in New Issue
Block a user