File tree 2 files changed +20
-3
lines changed
2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -74,15 +74,18 @@ describe(
74
74
const baseItem = {
75
75
field : 'value'
76
76
} ;
77
- const callback = ( item ?: object | undefined ) : boolean => {
77
+ const callback = ( item ?: unknown ) : void => {
78
78
called = true ;
79
79
// @ts -ignore
80
80
item . field = 'newValue' ;
81
- return called ;
82
81
} ;
83
82
const action = new CallbackAction ( '' , null , callback ) ;
84
83
85
- expect ( action . call ( baseItem ) ) . toBe ( true ) ;
84
+ expect ( called ) . toBe ( false ) ;
85
+
86
+ action . call ( baseItem ) ;
87
+
88
+ expect ( called ) . toBe ( true ) ;
86
89
expect ( baseItem . field ) . toBe ( 'newValue' ) ;
87
90
} ) ;
88
91
} ,
Original file line number Diff line number Diff line change
1
+ import { load_config } from './node_modules/@sveltejs/kit/src/core/config/index.js' ;
2
+ import { all } from './node_modules/@sveltejs/kit/src/core/sync/sync.js' ;
3
+
4
+ ( async ( ) => {
5
+ console . info ( 'Testing.' ) ;
6
+
7
+ const conf = await load_config ( ) ;
8
+
9
+ const manifest_data = all ( conf , 'development' ) ;
10
+
11
+ const routes = manifest_data . manifest_data . routes ;
12
+
13
+ console . info ( routes ) ;
14
+ } ) ( ) ;
You can’t perform that action at this time.
0 commit comments