mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
4b2f84d384
* Version 3 Beta * README Updates * More readme updates * lock * Restoring license/contrib * One set of tests * linting * More tests * Finish up unit tests * Update action.yml * Update main.yml * Update README.md * Update README.md * README Changes * Update README.md * Unit testing job * Some more stuff * More cleanup * Update README.md * Unrequired * Update CONTRIBUTING.md * no guess * Using Git Switch as opposed to checkout * Force Commit * Remove git * Some more simplification * Update git.ts * changes * Options * w * Debugging * More debugging * More debugging * Debugging * Debugging * Debugging * Debugging * Debugging * Debugging * Debugging * Debugging * Debugging * Debugging * Debugging * Debugging * Debugging * Debug * Debugging * Another 1 * Update git.ts * Fixes root deployment * Quiet Mode * Quiet * Excluding .github * Update README.md
23 lines
502 B
TypeScript
23 lines
502 B
TypeScript
import {execute} from '../src/util';
|
|
import {exec} from '@actions/exec';
|
|
|
|
jest.mock('@actions/exec', () => ({
|
|
exec: jest.fn()
|
|
}))
|
|
|
|
describe('util', () => {
|
|
describe('execute', () => {
|
|
it('should be called with the correct arguements', async() => {
|
|
await execute('echo Montezuma', './')
|
|
|
|
expect(exec).toBeCalledWith(
|
|
"echo Montezuma", [], {
|
|
cwd: "./",
|
|
listeners: {
|
|
stdout: expect.any(Function)
|
|
}
|
|
}
|
|
)
|
|
});
|
|
})
|
|
}) |