From 3bca9cd3b3ad716ebbc43748da06689ed35ca57c Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Tue, 7 Mar 2023 12:30:54 +0100 Subject: [PATCH] fix test --- __tests__/cache-save.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__tests__/cache-save.test.ts b/__tests__/cache-save.test.ts index 33809ba8..5a559d34 100644 --- a/__tests__/cache-save.test.ts +++ b/__tests__/cache-save.test.ts @@ -241,7 +241,7 @@ describe('run', () => { expect(setFailedSpy).not.toHaveBeenCalled(); }); - it('saves with error from toolkit, should fail workflow', async () => { + it('saves with error from toolkit, should not fail the workflow', async () => { inputs['cache'] = 'npm'; getStateSpy.mockImplementation((name: string) => { if (name === State.STATE_CACHE_PRIMARY_KEY) { @@ -263,7 +263,7 @@ describe('run', () => { expect(getStateSpy).toHaveBeenCalledTimes(3); expect(infoSpy).not.toHaveBeenCalledWith(); expect(saveCacheSpy).toHaveBeenCalled(); - expect(setFailedSpy).toHaveBeenCalled(); + expect(setFailedSpy).not.toHaveBeenCalled(); }); });