14
test/unit/node/wrapper.test.ts
Normal file
14
test/unit/node/wrapper.test.ts
Normal 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)
|
||||
})
|
||||
})
|
Reference in New Issue
Block a user