• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1var readInstalled = require('../read-installed.js');
2var test = require('tap').test;
3var path = require('path');
4
5test('prerelease packages should not be marked invalid', function(t) {
6  readInstalled(
7    path.join(__dirname, 'fixtures/issue-40'),
8    { log: console.error },
9    function(err, map) {
10      t.strictEqual(map.dependencies.fake.version, '0.1.0-2');
11      t.notOk(map.dependencies.fake.invalid);
12      t.end();
13    }
14  );
15});
16