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
441 B

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