mirror of
https://github.com/Azure/k8s-set-context.git
synced 2026-04-03 22:02:16 +08:00
- Use more modern TypeScript conventions - Use JavaScript Kubernetes Client - Add unit tests - Add integration tests - Add TypeScript compile verify workflow - Switch codeowners
15 lines
408 B
TypeScript
15 lines
408 B
TypeScript
import * as actions from "@actions/exec";
|
|
import { runAzCliCommand } from "./azCommands";
|
|
|
|
describe("Az commands", () => {
|
|
test("it runs an az cli command", async () => {
|
|
const path = "path";
|
|
const args = ["args"];
|
|
|
|
jest.spyOn(actions, "exec").mockImplementation(async () => 0);
|
|
|
|
expect(await runAzCliCommand(path, args));
|
|
expect(actions.exec).toBeCalledWith(path, args, {});
|
|
});
|
|
});
|