Skip to content

Commit

Permalink
Mocks new tool-cache methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcuffe committed Mar 6, 2021
1 parent 5db7851 commit 0e91055
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/setup-terraform.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 0e91055

Please sign in to comment.