From 10a39346639c2532aa41a8316ab7d63fe47e5f2c Mon Sep 17 00:00:00 2001 From: Sankalp Kotewar <98868223+kotewar@users.noreply.github.com> Date: Mon, 23 May 2022 06:49:26 +0000 Subject: [PATCH] Fixed linting issues --- packages/cache/__tests__/saveCache.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/cache/__tests__/saveCache.test.ts b/packages/cache/__tests__/saveCache.test.ts index deb78367..72836319 100644 --- a/packages/cache/__tests__/saveCache.test.ts +++ b/packages/cache/__tests__/saveCache.test.ts @@ -292,12 +292,12 @@ test('save with valid inputs uploads a cache', async () => { }) test('save with non existing path should not save cache', async () => { - const paths: string[] = ['node_modules'] + const path = 'node_modules' const primaryKey = 'Linux-node-bb828da54c148048dd17899ba9fda624811cfb43' - jest.spyOn(cacheUtils, 'resolvePaths').mockImplementation(async filePaths => { + jest.spyOn(cacheUtils, 'resolvePaths').mockImplementation(async () => { return [] }) - await expect(saveCache(paths, primaryKey)).rejects.toThrowError( + await expect(saveCache([path], primaryKey)).rejects.toThrowError( `Path Validation Error: Path(s) specified in the action do not exist, hence no cache is being saved.` ) })