Skip to content

Commit 225fc49

Browse files
committed
fix: add tests
1 parent b0841ad commit 225fc49

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ZodHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let cachedHandler: RedisStringsHandler;
1414
export default class CachedHandler {
1515
constructor(options: CreateRedisStringsHandlerOptions) {
1616
if (!cachedHandler) {
17-
console.log('created cached handler');
17+
console.log('created development cached handler');
1818
cachedHandler = new RedisStringsHandler(options);
1919
}
2020
}

test/integration/nextjs-cache-handler.integration.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ describe('Next.js Turbo Redis Cache Integration', () => {
443443
);
444444
const data: any = await res.json();
445445
expect(data.counter).toBe(counter + 4);
446-
expect(data.subFetchData.counter).toBe(subCounter + 2); // <- fails in CI only
446+
expect(data.subFetchData.counter).toBe(subCounter + 2);
447447
});
448448

449449
it('After the new request was made the redis key and hashmap should be set again', async () => {
@@ -499,7 +499,7 @@ describe('Next.js Turbo Redis Cache Integration', () => {
499499
);
500500
const data: any = await res.json();
501501
expect(data.counter).toBe(counter + 5);
502-
expect(data.subFetchData.counter).toBe(subCounter + 3); // <- fails in CI only
502+
expect(data.subFetchData.counter).toBe(subCounter + 3);
503503
});
504504

505505
it('After the new request was made the redis key and hashmap should be set again', async () => {

0 commit comments

Comments
 (0)