Skip to content

Commit 0e91055

Browse files
committed
Mocks new tool-cache methods.
1 parent 5db7851 commit 0e91055

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/setup-terraform.test.js

+14
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,13 @@ describe('Setup Terraform', () => {
564564
.fn()
565565
.mockReturnValueOnce('file');
566566

567+
tc.cacheDir = jest.fn()
568+
.mockReturnValueOnce('file');
569+
570+
tc.find = jest
571+
.fn()
572+
.mockReturnValueOnce(null);
573+
567574
os.platform = jest
568575
.fn()
569576
.mockReturnValue('linux');
@@ -608,6 +615,13 @@ describe('Setup Terraform', () => {
608615
.fn()
609616
.mockReturnValueOnce('file');
610617

618+
tc.cacheDir = jest.fn()
619+
.mockReturnValueOnce('file');
620+
621+
tc.find = jest
622+
.fn()
623+
.mockReturnValueOnce(null);
624+
611625
os.platform = jest
612626
.fn()
613627
.mockReturnValue('win32');

0 commit comments

Comments
 (0)