From 7f6523f5354fc3fa858ee84a38cba80c8a4de9b3 Mon Sep 17 00:00:00 2001 From: Josh Gross Date: Fri, 13 Dec 2019 15:39:29 -0500 Subject: [PATCH] Linting tests --- __tests__/restore.test.ts | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/__tests__/restore.test.ts b/__tests__/restore.test.ts index e25b845..3a4aaaa 100644 --- a/__tests__/restore.test.ts +++ b/__tests__/restore.test.ts @@ -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);