Files
Paul Lewis 911c1b8a93 Updates node_modules
DISABLE_THIRD_PARTY_CHECK=Package needs updating with node_modules
Change-Id: I889f1b86c586e37307a3e13ad762aa56d1ece150
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1946468
Commit-Queue: Paul Lewis <aerotwist@chromium.org>
Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org>
2019-12-02 14:54:54 +00:00

16 lines
441 B
JavaScript

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