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 3
3
NextCacheHandlerContext ,
4
4
CacheEntry ,
5
5
CacheContext ,
6
- CacheHandlerContext
6
+ CacheHandlerContext ,
7
+ CachedRouteKind
7
8
} from '../../src/types'
8
9
9
10
export const mockNextHandlerContext : NextCacheHandlerContext = {
@@ -26,8 +27,7 @@ export const mockHandlerMethodContext: CacheHandlerContext = {
26
27
export const mockPageData : IncrementalCacheValue = {
27
28
pageData : { } ,
28
29
html : '' ,
29
- kind : 'PAGE' ,
30
- postponed : undefined ,
30
+ kind : CachedRouteKind . PAGE ,
31
31
headers : undefined ,
32
32
status : 200
33
33
}
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'
2
2
export const mockCacheEntry : CacheEntry = {
3
3
value : {
4
4
pageData : { } ,
5
5
html : '' ,
6
- kind : 'PAGE' ,
7
- postponed : undefined ,
6
+ kind : CachedRouteKind . PAGE ,
8
7
headers : undefined ,
9
8
status : 200
10
9
} ,
You can’t perform that action at this time.
0 commit comments