This commit is contained in:
zino
2021-03-02 00:06:38 +01:00
parent 3a8aab0e9a
commit eeb745b013
3567 changed files with 1234741 additions and 0 deletions

20
client/node_modules/module-deps/test/dotdot.js generated vendored Normal file
View File

@@ -0,0 +1,20 @@
var mdeps = require('../');
var test = require('tap').test;
var through = require('through2');
var path = require('path');
test('dotdot', function (t) {
var expected = [
path.join(__dirname, '/dotdot/index.js'),
path.join(__dirname, '/dotdot/abc/index.js')
];
t.plan(expected.length);
var d = mdeps();
d.end(path.join(__dirname, '/dotdot/abc/index.js'));
d.pipe(through.obj(function (row, enc, next) {
t.deepEqual(row.file, expected.shift());
next();
}));
});