Skip to content

Commit 30cd52e

Browse files
fix warning output in cleanup-java
1 parent 2e40ee8 commit 30cd52e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

__tests__/cleanup-java.test.ts

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import * as util from '../src/util';
55

66
describe('cleanup', () => {
77
let spyWarning: jest.SpyInstance<void, Parameters<typeof core.warning>>;
8+
let spyInfo: jest.SpyInstance<void, Parameters<typeof core.info>>;
89
let spyCacheSave: jest.SpyInstance<
910
ReturnType<typeof cache.saveCache>,
1011
Parameters<typeof cache.saveCache>
@@ -13,6 +14,9 @@ describe('cleanup', () => {
1314

1415
beforeEach(() => {
1516
spyWarning = jest.spyOn(core, 'warning');
17+
spyWarning.mockImplementation(() => null);
18+
spyInfo = jest.spyOn(core, 'info');
19+
spyInfo.mockImplementation(() => null);
1620
spyCacheSave = jest.spyOn(cache, 'saveCache');
1721
spyJobStatusSuccess = jest.spyOn(util, 'isJobStatusSuccess');
1822
spyJobStatusSuccess.mockReturnValue(true);

0 commit comments

Comments
 (0)