Mock resolved value test

This commit is contained in:
panticmilos 2022-07-18 13:26:51 +02:00
parent 6d85af87cc
commit 3aec06c05e

View file

@ -121,7 +121,9 @@ virtualenvs.path = "{cache-dir}/virtualenvs" # /Users/patrick/Library/Caches/py
} }
}); });
computeKeysSpy.mockResolvedValue('Ubuntu-20.4'); computeKeysSpy.mockImplementation(() =>
Promise.resolve('Ubuntu-20.4')
);
} }
await cacheDistributor.restoreCache(); await cacheDistributor.restoreCache();