mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-18 01:12:35 +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()
|
.fn()
|
||||||
.mockReturnValueOnce('file');
|
.mockReturnValueOnce('file');
|
||||||
|
|
||||||
|
tc.cacheDir = jest.fn()
|
||||||
|
.mockReturnValueOnce('file');
|
||||||
|
|
||||||
|
tc.find = jest
|
||||||
|
.fn()
|
||||||
|
.mockReturnValueOnce(null);
|
||||||
|
|
||||||
os.platform = jest
|
os.platform = jest
|
||||||
.fn()
|
.fn()
|
||||||
.mockReturnValue('linux');
|
.mockReturnValue('linux');
|
||||||
|
|
@ -608,6 +615,13 @@ describe('Setup Terraform', () => {
|
||||||
.fn()
|
.fn()
|
||||||
.mockReturnValueOnce('file');
|
.mockReturnValueOnce('file');
|
||||||
|
|
||||||
|
tc.cacheDir = jest.fn()
|
||||||
|
.mockReturnValueOnce('file');
|
||||||
|
|
||||||
|
tc.find = jest
|
||||||
|
.fn()
|
||||||
|
.mockReturnValueOnce(null);
|
||||||
|
|
||||||
os.platform = jest
|
os.platform = jest
|
||||||
.fn()
|
.fn()
|
||||||
.mockReturnValue('win32');
|
.mockReturnValue('win32');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue