Skip to content

Commit

Permalink
test: ut
Browse files Browse the repository at this point in the history
  • Loading branch information
jayzhang committed Nov 8, 2024
1 parent b8c6709 commit f93b166
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/vscode-extension/test/utils/processUtil.test.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// import child_process from "child_process";
import sinon from "sinon";
import { processUtil } from "../../src/utils/processUtil";

describe("ProcessUtil", () => {
let execStub: any;
const sandbox = sinon.createSandbox();
beforeEach(() => {
});

afterEach(() => {
sandbox.restore();
Expand All @@ -15,8 +11,6 @@ describe("ProcessUtil", () => {
describe("killProcess", () => {
it("error", async () => {
sandbox.stub(process, "platform").value("win32");
const error = new Error("exec error");
execStub.yields(error);
try {
await processUtil.killProcess(-1);
throw new Error("Expected method to reject.");
Expand Down

0 comments on commit f93b166

Please sign in to comment.