mirror of
				https://code.forgejo.org/actions/cache.git
				synced 2025-10-31 12:42:28 +00:00 
			
		
		
		
	Linting tests
This commit is contained in:
		
							parent
							
								
									4d3086b6b8
								
							
						
					
					
						commit
						7f6523f535
					
				
					 1 changed files with 12 additions and 3 deletions
				
			
		|  | @ -255,7 +255,10 @@ test("restore with cache found", async () => { | |||
|     expect(getCacheMock).toHaveBeenCalledWith([key]); | ||||
|     expect(setCacheStateMock).toHaveBeenCalledWith(cacheEntry); | ||||
|     expect(createTempDirectoryMock).toHaveBeenCalledTimes(1); | ||||
|     expect(downloadCacheMock).toHaveBeenCalledWith(cacheEntry.archiveLocation, archivePath); | ||||
|     expect(downloadCacheMock).toHaveBeenCalledWith( | ||||
|         cacheEntry.archiveLocation, | ||||
|         archivePath | ||||
|     ); | ||||
|     expect(getArchiveFileSizeMock).toHaveBeenCalledWith(archivePath); | ||||
|     expect(mkdirMock).toHaveBeenCalledWith(cachePath); | ||||
| 
 | ||||
|  | @ -333,7 +336,10 @@ test("restore with a pull request event and cache found", async () => { | |||
|     expect(getCacheMock).toHaveBeenCalledWith([key]); | ||||
|     expect(setCacheStateMock).toHaveBeenCalledWith(cacheEntry); | ||||
|     expect(createTempDirectoryMock).toHaveBeenCalledTimes(1); | ||||
|     expect(downloadCacheMock).toHaveBeenCalledWith(cacheEntry.archiveLocation, archivePath); | ||||
|     expect(downloadCacheMock).toHaveBeenCalledWith( | ||||
|         cacheEntry.archiveLocation, | ||||
|         archivePath | ||||
|     ); | ||||
|     expect(getArchiveFileSizeMock).toHaveBeenCalledWith(archivePath); | ||||
|     expect(infoMock).toHaveBeenCalledWith(`Cache Size: ~60 MB (62915000 B)`); | ||||
|     expect(mkdirMock).toHaveBeenCalledWith(cachePath); | ||||
|  | @ -412,7 +418,10 @@ test("restore with cache found for restore key", async () => { | |||
|     expect(getCacheMock).toHaveBeenCalledWith([key, restoreKey]); | ||||
|     expect(setCacheStateMock).toHaveBeenCalledWith(cacheEntry); | ||||
|     expect(createTempDirectoryMock).toHaveBeenCalledTimes(1); | ||||
|     expect(downloadCacheMock).toHaveBeenCalledWith(cacheEntry.archiveLocation, archivePath); | ||||
|     expect(downloadCacheMock).toHaveBeenCalledWith( | ||||
|         cacheEntry.archiveLocation, | ||||
|         archivePath | ||||
|     ); | ||||
|     expect(getArchiveFileSizeMock).toHaveBeenCalledWith(archivePath); | ||||
|     expect(infoMock).toHaveBeenCalledWith(`Cache Size: ~0 MB (142 B)`); | ||||
|     expect(mkdirMock).toHaveBeenCalledWith(cachePath); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue