/
githubmirror
/
code-server
Обзор
Документация
Войти
/
githubmirror
/
code-server
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v4.115.0
test/integration/help.test.ts
13 строк
486 B
Joe Previte
feat: add --help integration test (#5434)
10 авг 2022, 18:23
Не верифицирован
10 авг 2022, 18:23
6d8f30d
Код
Авторство
О чём код?
import { runCodeServerCommand } from "../utils/runCodeServerCommand" // NOTE@jsjoeio // We have this test to ensure that native modules // work as expected. If this is called on the wrong // platform, the test will fail. describe("--help", () => { it("should list code-server usage", async () => { const expectedOutput = "Usage: code-server [options] [path]" const { stdout } = await runCodeServerCommand(["--help"]) expect(stdout).toMatch(expectedOutput) }, 20000) })