mirror of
https://github.com/coder/code-server.git
synced 2024-12-29 20:52:16 +03:00
6d8f30d579
Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
14 lines
486 B
TypeScript
14 lines
486 B
TypeScript
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)
|
|
})
|