From 30cd52e29bb0a368d0d5ded2052280264ae4231f Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Mon, 23 Aug 2021 11:54:48 +0300 Subject: [PATCH] fix warning output in cleanup-java --- __tests__/cleanup-java.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/__tests__/cleanup-java.test.ts b/__tests__/cleanup-java.test.ts index b3f2b52cc..195515533 100644 --- a/__tests__/cleanup-java.test.ts +++ b/__tests__/cleanup-java.test.ts @@ -5,6 +5,7 @@ import * as util from '../src/util'; describe('cleanup', () => { let spyWarning: jest.SpyInstance>; + let spyInfo: jest.SpyInstance>; let spyCacheSave: jest.SpyInstance< ReturnType, Parameters @@ -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);