You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
396 B
16 lines
396 B
var mdeps = require('../');
|
|
var test = require('tap').test;
|
|
var path = require('path');
|
|
var fs = require('fs');
|
|
|
|
test('invalid pkg', function (t) {
|
|
var d = mdeps();
|
|
d.on('package', function (pkg_) {
|
|
// console.error({pkg_});
|
|
});
|
|
d.end(path.join(__dirname, '/invalid_pkg/file.js'));
|
|
d.on('data', function () {});
|
|
d.on('end', function () {
|
|
t.end();
|
|
});
|
|
});
|