mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
d17161afee
* Customizable Commit Messages * Removes lodash * Update package.json * README * Changes * Check for null * Adds a dash
20 lines
434 B
TypeScript
20 lines
434 B
TypeScript
import { execute } from "../src/execute";
|
|
import { exec } from "@actions/exec";
|
|
|
|
jest.mock("@actions/exec", () => ({
|
|
exec: jest.fn()
|
|
}));
|
|
|
|
describe("execute", () => {
|
|
it("should be called with the correct arguments", async () => {
|
|
await execute("echo Montezuma", "./");
|
|
|
|
expect(exec).toBeCalledWith("echo Montezuma", [], {
|
|
cwd: "./",
|
|
listeners: {
|
|
stdout: expect.any(Function)
|
|
}
|
|
});
|
|
});
|
|
});
|