Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/test/frameworks/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ describe("Frameworks utils", () => {
expect(getNodeModuleBin("tsc", __dirname)).to.equal(
resolve(join(__dirname, "..", "..", "..", "node_modules", ".bin", "tsc"))
);
});
}).timeout(5000);
it("should throw when npm root not found", () => {
expect(() => {
getNodeModuleBin("tsc", "/");
}).to.throw("Could not find the tsc executable.");
});
}).timeout(5000);
it("should throw when executable not found", () => {
expect(() => {
getNodeModuleBin("xxxxx", __dirname);
}).to.throw("Could not find the xxxxx executable.");
});
}).timeout(5000);
});

describe("isUrl", () => {
Expand Down