github-pages-deploy-action/__tests__/execute.test.ts
James Ives 8a621223c0
git switch -> git checkout (#121)
* 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
2020-01-14 10:04:59 -05:00

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)
}
}
)
});
})
})