setup-cpp/src/gcc/__tests__/gcc.test.ts

15 lines
315 B
TypeScript
Raw Normal View History

2021-09-16 22:03:54 +08:00
import { spawnSync as spawn } from "child_process"
import { setupGcc } from "../gcc"
jest.setTimeout(200000)
describe("setup-gcc", () => {
it("should setup gcc", async () => {
await setupGcc("", "", "")
const { status } = spawn("gcc", {
encoding: "utf8",
})
expect(status).toBe(0)
})
})