Revert "refactor: delete wrapper test"

This reverts commit 3999279b73.
This commit is contained in:
Joe Previte 2022-12-20 13:53:17 -07:00
parent 3999279b73
commit fc54c4451c
No known key found for this signature in database
GPG Key ID: 2C91590C6B742C24
2 changed files with 15 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import * as integration from "../../../utils/integration"
// TODO@jsjoeio - move these to integration tests since they rely on Code // TODO@jsjoeio - move these to integration tests since they rely on Code
// to be built // to be built
describe("vscode", () => { describe.skip("vscode", () => {
let codeServer: httpserver.HttpServer | undefined let codeServer: httpserver.HttpServer | undefined
const testName = "vscode" const testName = "vscode"

View File

@ -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)
})
})