Mocks new tool-cache methods.

This commit is contained in:
Jared Cuffe 2021-03-05 20:10:13 -08:00
parent 5db7851ff2
commit 0e91055bdf

View file

@ -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');