File tree Expand file tree Collapse file tree 1 file changed +28
-1
lines changed
src/generators/api-links/test Expand file tree Collapse file tree 1 file changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,34 @@ describe('api links', () => {
1919 input : [ sourceFile ] ,
2020 } ) ;
2121
22- const actualOutput = await apiLinks . generate ( astJsResult , { } ) ;
22+ const actualOutput = await apiLinks . generate ( astJsResult , {
23+ gitRef : {
24+ protocols : [ 'https' ] ,
25+ protocol : 'https' ,
26+ port : '' ,
27+ resource : 'github.com' ,
28+ host : 'github.com' ,
29+ user : '' ,
30+ password : '' ,
31+ pathname : '/nodejs/node/tree/HEAD' ,
32+ hash : '' ,
33+ search : '' ,
34+ href : 'https://github.com/nodejs/node/tree/HEAD' ,
35+ query : { } ,
36+ parse_failed : false ,
37+ token : '' ,
38+ source : 'github.com' ,
39+ git_suffix : false ,
40+ name : 'node' ,
41+ owner : 'nodejs' ,
42+ commit : 'HEAD' ,
43+ ref : 'HEAD' ,
44+ filepathtype : 'tree' ,
45+ filepath : '' ,
46+ organization : 'nodejs' ,
47+ full_name : 'nodejs/node' ,
48+ } ,
49+ } ) ;
2350
2451 for ( const [ k , v ] of Object . entries ( actualOutput ) ) {
2552 actualOutput [ k ] = v . replace ( / .* (? = l i b \/ ) / , '' ) ;
You can’t perform that action at this time.
0 commit comments