mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-17 00:52:33 +00:00
Mocks new tool-cache methods.
This commit is contained in:
parent
5db7851ff2
commit
0e91055bdf
1 changed files with 14 additions and 0 deletions
|
|
@ -564,6 +564,13 @@ describe('Setup Terraform', () => {
|
|||
.fn()
|
||||
.mockReturnValueOnce('file');
|
||||
|
||||
tc.cacheDir = jest.fn()
|
||||
.mockReturnValueOnce('file');
|
||||
|
||||
tc.find = jest
|
||||
.fn()
|
||||
.mockReturnValueOnce(null);
|
||||
|
||||
os.platform = jest
|
||||
.fn()
|
||||
.mockReturnValue('linux');
|
||||
|
|
@ -608,6 +615,13 @@ describe('Setup Terraform', () => {
|
|||
.fn()
|
||||
.mockReturnValueOnce('file');
|
||||
|
||||
tc.cacheDir = jest.fn()
|
||||
.mockReturnValueOnce('file');
|
||||
|
||||
tc.find = jest
|
||||
.fn()
|
||||
.mockReturnValueOnce(null);
|
||||
|
||||
os.platform = jest
|
||||
.fn()
|
||||
.mockReturnValue('win32');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue