1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-node synced 2025-06-10 05:52:20 +02:00

Add 'cache-hit' as output

This commit is contained in:
Manuel 2021-09-03 18:34:37 +00:00 committed by GitHub
parent 041bafb672
commit d1178716db
4 changed files with 7 additions and 0 deletions

View file

@ -140,6 +140,7 @@ describe('cache-restore', () => {
expect(infoSpy).not.toHaveBeenCalledWith(
`${packageManager} cache is not found`
);
expect(setOutputSpy).toHaveBeenCalledWith('cache-hit', true);
}
);
});
@ -167,6 +168,7 @@ describe('cache-restore', () => {
expect(infoSpy).toHaveBeenCalledWith(
`${packageManager} cache is not found`
);
expect(setOutputSpy).toHaveBeenCalledWith('cache-hit', false);
}
);
});