Skip to content

Commit

Permalink
fix warning output in cleanup-java
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-shibanov committed Aug 23, 2021
1 parent 2e40ee8 commit 30cd52e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions __tests__/cleanup-java.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import * as util from '../src/util';

describe('cleanup', () => {
let spyWarning: jest.SpyInstance<void, Parameters<typeof core.warning>>;
let spyInfo: jest.SpyInstance<void, Parameters<typeof core.info>>;
let spyCacheSave: jest.SpyInstance<
ReturnType<typeof cache.saveCache>,
Parameters<typeof cache.saveCache>
Expand All @@ -13,6 +14,9 @@ describe('cleanup', () => {

beforeEach(() => {
spyWarning = jest.spyOn(core, 'warning');
spyWarning.mockImplementation(() => null);
spyInfo = jest.spyOn(core, 'info');
spyInfo.mockImplementation(() => null);
spyCacheSave = jest.spyOn(cache, 'saveCache');
spyJobStatusSuccess = jest.spyOn(util, 'isJobStatusSuccess');
spyJobStatusSuccess.mockReturnValue(true);
Expand Down

0 comments on commit 30cd52e

Please sign in to comment.