From fc54c4451c693c3b927945233901f88cf90250a0 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Tue, 20 Dec 2022 13:53:17 -0700 Subject: [PATCH] Revert "refactor: delete wrapper test" This reverts commit 3999279b73c3519c7dbb03dfc7076bf26f717e13. --- test/unit/node/routes/vscode.test.ts | 2 +- test/unit/node/wrapper.test.ts | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 test/unit/node/wrapper.test.ts diff --git a/test/unit/node/routes/vscode.test.ts b/test/unit/node/routes/vscode.test.ts index 105d732eb..5d3dbb63d 100644 --- a/test/unit/node/routes/vscode.test.ts +++ b/test/unit/node/routes/vscode.test.ts @@ -6,7 +6,7 @@ import * as integration from "../../../utils/integration" // TODO@jsjoeio - move these to integration tests since they rely on Code // to be built -describe("vscode", () => { +describe.skip("vscode", () => { let codeServer: httpserver.HttpServer | undefined const testName = "vscode" diff --git a/test/unit/node/wrapper.test.ts b/test/unit/node/wrapper.test.ts new file mode 100644 index 000000000..4aa14bda5 --- /dev/null +++ b/test/unit/node/wrapper.test.ts @@ -0,0 +1,14 @@ +import { ChildProcess, ParentProcess, isChild } from "../../../src/node/wrapper" + +describe("wrapper", () => { + describe("isChild", () => { + it("should return false for parent process", () => { + const p = new ParentProcess("1") + expect(isChild(p)).toBe(false) + }) + }) + it("should return false for parent process", () => { + const childProc = new ChildProcess(1) + expect(isChild(childProc)).toBe(true) + }) +})