-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a unit test for the cleanup module
- Loading branch information
Barry Gordon
committed
Feb 28, 2022
1 parent
f738f6b
commit 068fc70
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import * as core from '@actions/core' | ||
|
||
import {run} from '../src/cleanup' | ||
|
||
describe('run', () => { | ||
beforeEach(async () => { | ||
jest.spyOn(core, 'error').mockImplementation(jest.fn()) | ||
}) | ||
|
||
test('it does not log any errors interacting with Docker by default', async () => { | ||
await run() | ||
|
||
expect(core.error).not.toHaveBeenCalled() | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters