@@ -99,47 +99,10 @@ exports[`dox parser parse example jsdoc headers (declaration methods) 1`] = `
99
99
exports [` dox parser parse example jsdoc headers (function methods) 1` ] = `
100
100
{
101
101
" methods" : [
102
- {
103
- " description" : " Finds file in path.
104
-
105
- console .log (await findFileInPath (' ./' , ' package.json' ));
106
- console .log (await findFileInPath (' ../' , ' package.json' ));
107
- console .log (await findFileInPath (' ~/git/github/doxdox/' , ' .package.json' ));" ,
108
- " fullName" : " findFileInPath(input, fileName)" ,
109
- " name" : " findFileInPath" ,
110
- " params" : [
111
- {
112
- " description" : " Directory to check for file." ,
113
- " name" : " input" ,
114
- " types" : [
115
- " string" ,
116
- ],
117
- },
118
- {
119
- " description" : " = 'package.json'] File name to check for." ,
120
- " name" : " fileName" ,
121
- " types" : [
122
- " string" ,
123
- ],
124
- },
125
- ],
126
- " private" : false ,
127
- " returns" : [
128
- {
129
- " description" : " Path to package.json file." ,
130
- " name" : null ,
131
- " types" : [
132
- " Promise.<string|null>" ,
133
- ],
134
- },
135
- ],
136
- " slug" : " test-mocks-declaration-js-findfileinpath" ,
137
- " type" : " declaration" ,
138
- },
139
102
{
140
103
" description" : " Get the current working directory." ,
141
- " fullName" : " getCurrentWorkingDirectory()" ,
142
- " name" : " getCurrentWorkingDirectory" ,
104
+ " fullName" : " getCurrentWorkingDirectory()() " ,
105
+ " name" : " getCurrentWorkingDirectory() " ,
143
106
" params" : [],
144
107
" private" : false ,
145
108
" returns" : [
@@ -151,13 +114,13 @@ exports[`dox parser parse example jsdoc headers (function methods) 1`] = `
151
114
],
152
115
},
153
116
],
154
- " slug" : " test-mocks-declaration -js-getcurrentworkingdirectory" ,
155
- " type" : " declaration " ,
117
+ " slug" : " test-mocks-function -js-getcurrentworkingdirectory" ,
118
+ " type" : " function " ,
156
119
},
157
120
{
158
121
" description" : " Get the root directory of the package, supplied path or URL." ,
159
- " fullName" : " getRootDirPath(url)" ,
160
- " name" : " getRootDirPath" ,
122
+ " fullName" : " getRootDirPath()( url)" ,
123
+ " name" : " getRootDirPath() " ,
161
124
" params" : [
162
125
{
163
126
" description" : " Optional path or URL." ,
@@ -177,10 +140,10 @@ exports[`dox parser parse example jsdoc headers (function methods) 1`] = `
177
140
],
178
141
},
179
142
],
180
- " slug" : " test-mocks-declaration -js-getrootdirpath" ,
181
- " type" : " declaration " ,
143
+ " slug" : " test-mocks-function -js-getrootdirpath" ,
144
+ " type" : " function " ,
182
145
},
183
146
],
184
- " path" : " ./test/mocks/declaration .js" ,
147
+ " path" : " ./test/mocks/function .js" ,
185
148
}
186
149
` ;
0 commit comments