mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
8a621223c0
* Changes * Update git.ts * rsync * Remove apt-get * Update git.ts * Update git.js * Update README.md * Update README.md * Update README.md * Integration Test Addition * README * Update integration.yml * Simplify
23 lines
507 B
TypeScript
23 lines
507 B
TypeScript
import {execute} from '../src/execute';
|
|
import {exec} from '@actions/exec';
|
|
|
|
jest.mock('@actions/exec', () => ({
|
|
exec: jest.fn()
|
|
}))
|
|
|
|
describe('execute', () => {
|
|
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)
|
|
}
|
|
}
|
|
)
|
|
});
|
|
})
|
|
}) |