mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-27 13:33:37 +00:00
test: mock function changing the filesystem
This commit is contained in:
parent
1a3ca02724
commit
aff1a4ef8f
1 changed files with 2 additions and 0 deletions
|
|
@ -94,6 +94,8 @@ describe('Setup Terraform', () => {
|
||||||
.fn()
|
.fn()
|
||||||
.mockReturnValueOnce('file.zip');
|
.mockReturnValueOnce('file.zip');
|
||||||
|
|
||||||
|
io.mv = jest.fn();
|
||||||
|
|
||||||
tc.extractZip = jest
|
tc.extractZip = jest
|
||||||
.fn()
|
.fn()
|
||||||
.mockReturnValueOnce('file');
|
.mockReturnValueOnce('file');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue