Added some tests

This commit is contained in:
2021-06-23 22:30:45 +02:00
parent 24f897e907
commit 3d3d7fae48
3796 changed files with 218744 additions and 3 deletions

12
tests/node_modules/tape/example/stream/object.js generated vendored Normal file
View 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
View 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));
});

View 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
View 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();
});