inspectdep
Version:
A dependency inspection tool.
26 lines (19 loc) • 432 B
JavaScript
;
const mock = require("mock-fs");
const { findProdInstalls } = require("..");
describe("index", () => {
beforeEach(() => {
mock({});
});
afterEach(() => {
mock.restore();
});
describe("findProdInstalls", () => {
it("handles no dependencies", async () => {
mock({
"package.json": JSON.stringify({})
});
expect(await findProdInstalls()).to.eql([]);
});
});
});