Sha256: 009c09232fc8cc5c4ccc2284dfdb1af4784b5682aee359183bbfdb2adf5d9d96
Contents?: true
Size: 513 Bytes
Versions: 7
Compression:
Stored size: 513 Bytes
Contents
var mdeps = require('../'); var test = require('tap').test; var path = require('path'); var fs = require('fs'); var dirname = path.join(__dirname, '/pkg'); test('pkg', function (t) { t.plan(4); var d = mdeps(); d.on('package', function (pkg_) { var pkg = JSON.parse(fs.readFileSync(dirname + pkg_.dir + '/package.json')); pkg.__dirname = path.join(dirname, pkg_.dir); t.deepEqual(pkg_, pkg); }); d.end(path.join(__dirname, '/pkg/main.js')); d.resume(); });
Version data entries
7 entries across 7 versions & 2 rubygems