Skip to content

Commit

Permalink
revert: remove test code
Browse files Browse the repository at this point in the history
  • Loading branch information
malandis committed Jan 15, 2025
1 parent fea48d6 commit 17caba3
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,14 @@ describe('CompressorFactory', () => {
it('should compress the value if compress is true', async () => {
const cacheClient = cacheClientWithCompressor_AutoDecompressionDisabled;
const key = randomString();
const setResponse = await cacheClient.set(cacheName, key, '', {
const setResponse = await cacheClient.set(cacheName, key, testValue, {
compress: true,
});
expectWithMessage(() => {
expect(setResponse).toBeInstanceOf(CacheSet.Success);
}, `Expected CacheClient.set to be a success with compression specified, got: '${setResponse.toString()}'`);

const getResponse = await cacheClient.get(cacheName, key, {
decompress: true,
});
const getResponse = await cacheClient.get(cacheName, key);
expectWithMessage(() => {
expect(getResponse).toBeInstanceOf(CacheGet.Hit);
}, `Expected CacheClient.get to be a hit after CacheClient.set with compression specified, got: '${getResponse.toString()}'`);
Expand Down

0 comments on commit 17caba3

Please sign in to comment.