Skip to content

Commit 0cc9a15

Browse files
feat: updated tests
1 parent 6c5f9d3 commit 0cc9a15

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

packages/cache-core/__tests__/mocks/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import {
33
NextCacheHandlerContext,
44
CacheEntry,
55
CacheContext,
6-
CacheHandlerContext
6+
CacheHandlerContext,
7+
CachedRouteKind
78
} from '../../src/types'
89

910
export const mockNextHandlerContext: NextCacheHandlerContext = {
@@ -26,8 +27,7 @@ export const mockHandlerMethodContext: CacheHandlerContext = {
2627
export const mockPageData: IncrementalCacheValue = {
2728
pageData: {},
2829
html: '',
29-
kind: 'PAGE',
30-
postponed: undefined,
30+
kind: CachedRouteKind.PAGE,
3131
headers: undefined,
3232
status: 200
3333
}

packages/redis-cache/__tests__/mocks.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
import { CacheEntry } from '@dbbs/next-cache-handler-core'
1+
import { CacheEntry, CachedRouteKind } from '@dbbs/next-cache-handler-core'
22
export const mockCacheEntry: CacheEntry = {
33
value: {
44
pageData: {},
55
html: '',
6-
kind: 'PAGE',
7-
postponed: undefined,
6+
kind: CachedRouteKind.PAGE,
87
headers: undefined,
98
status: 200
109
},

0 commit comments

Comments
 (0)