mirror of
https://github.com/coder/code-server.git
synced 2024-12-04 15:00:38 +08:00
15 lines
432 B
TypeScript
15 lines
432 B
TypeScript
|
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)
|
||
|
})
|
||
|
})
|