Format text of messages in the unit-tests

This commit is contained in:
Ivan Zosimov 2022-04-01 11:51:57 +02:00
parent 104f9bb034
commit 2968ddac8d
2 changed files with 8 additions and 8 deletions

View file

@ -18,7 +18,7 @@ describe('restoreCache', () => {
let setOutputSpy = jest.spyOn(core, 'setOutput');
const packageManager = 'default';
const cacheDependencyPath = 'some path';
const cacheDependencyPath = 'path';
beforeEach(() => {
getCacheDirectoryPathSpy.mockImplementation(
@ -50,7 +50,7 @@ describe('restoreCache', () => {
//Arrange
hashFilesSpy.mockImplementation((somePath: string) => {
return new Promise<string>(resolve => {
resolve('Some File Hash');
resolve('file_hash');
});
});
@ -69,13 +69,13 @@ describe('restoreCache', () => {
//Arrange
hashFilesSpy.mockImplementation((somePath: string) => {
return new Promise<string>(resolve => {
resolve('Some File Hash');
resolve('file_hash');
});
});
restoreCacheSpy.mockImplementation(() => {
return new Promise<string>(resolve => {
resolve('Some cache key');
resolve('cache_key');
});
});