blob: 3105fe24aef6c1bb441aea871666786ed0d51e3c [file] [log] [blame]
var readInstalled = require('../read-installed.js');
var test = require('tap').test;
var path = require('path');
test('prerelease packages should not be marked invalid', function(t) {
readInstalled(
path.join(__dirname, 'fixtures/issue-40'),
{ log: console.error },
function(err, map) {
t.strictEqual(map.dependencies.fake.version, '0.1.0-2');
t.notOk(map.dependencies.fake.invalid);
t.end();
}
);
});