File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
cache-core/__tests__/mocks Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 33 NextCacheHandlerContext ,
44 CacheEntry ,
55 CacheContext ,
6- CacheHandlerContext
6+ CacheHandlerContext ,
7+ CachedRouteKind
78} from '../../src/types'
89
910export const mockNextHandlerContext : NextCacheHandlerContext = {
@@ -26,8 +27,7 @@ export const mockHandlerMethodContext: CacheHandlerContext = {
2627export const mockPageData : IncrementalCacheValue = {
2728 pageData : { } ,
2829 html : '' ,
29- kind : 'PAGE' ,
30- postponed : undefined ,
30+ kind : CachedRouteKind . PAGE ,
3131 headers : undefined ,
3232 status : 200
3333}
Original file line number Diff line number Diff line change 1- import { CacheEntry } from '@dbbs/next-cache-handler-core'
1+ import { CacheEntry , CachedRouteKind } from '@dbbs/next-cache-handler-core'
22export 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 } ,
You can’t perform that action at this time.
0 commit comments