/
githubmirror
/
code-server
Обзор
Документация
Войти
/
githubmirror
/
code-server
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/unit/node/wrapper.test.ts
14 строк
432 B
Joe Previte
release: 4.9.0 (#5772)
06 дек 2022, 23:28
Не верифицирован
06 дек 2022, 23:28
1484bee
Код
Авторство
О чём код?
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) }) })