From 6d85af87cc05760d72511ffb5b42f2a5a0dde2ba Mon Sep 17 00:00:00 2001 From: panticmilos Date: Mon, 18 Jul 2022 13:06:54 +0200 Subject: [PATCH] Mock resolved value test --- __tests__/cache-restore.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/cache-restore.test.ts b/__tests__/cache-restore.test.ts index d1c26967..cb37cc93 100644 --- a/__tests__/cache-restore.test.ts +++ b/__tests__/cache-restore.test.ts @@ -121,7 +121,7 @@ virtualenvs.path = "{cache-dir}/virtualenvs" # /Users/patrick/Library/Caches/py } }); - computeKeysSpy.mockImplementation(() => 'Ubuntu-20.4'); + computeKeysSpy.mockResolvedValue('Ubuntu-20.4'); } await cacheDistributor.restoreCache();