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

17 lines
527 B
JavaScript

var readInstalled = require("../read-installed.js");
var test = require("tap").test;
var path = require("path");
test("Handle bad path", function (t) {
readInstalled(path.join(__dirname, "../unknown"), {
dev: true,
log: console.error
}, function (er, map) {
t.notOk(er, "er should be null");
t.ok(map, "map should be data");
t.equal(Object.keys(map.dependencies).length, 0, "Dependencies should have no keys");
if (er) return console.error(er.stack || er.message);
t.end();
});
});