@@ -106,15 +106,6 @@ exports[`custom parser parse amd-module 1`] = `
106
106
" returns" : [],
107
107
" slug" : " test-mocks-amd-module-js-shirt" ,
108
108
},
109
- {
110
- " description" : " The class's \` size\` property." ,
111
- " fullName" : " size()" ,
112
- " name" : " size" ,
113
- " params" : [],
114
- " private" : false ,
115
- " returns" : [],
116
- " slug" : " test-mocks-amd-module-js-size" ,
117
- },
118
109
{
119
110
" description" : " Size." ,
120
111
" fullName" : " size()" ,
@@ -150,6 +141,15 @@ exports[`custom parser parse amd-module 1`] = `
150
141
" returns" : [],
151
142
" slug" : " test-mocks-amd-module-js-tag" ,
152
143
},
144
+ {
145
+ " description" : " The class's \` size\` property." ,
146
+ " fullName" : " this.size()" ,
147
+ " name" : " this.size" ,
148
+ " params" : [],
149
+ " private" : false ,
150
+ " returns" : [],
151
+ " slug" : " test-mocks-amd-module-js-this-size" ,
152
+ },
153
153
{
154
154
" description" : " Create a new Turtleneck." ,
155
155
" fullName" : " Turtleneck(size)" ,
@@ -355,39 +355,31 @@ exports[`custom parser parse commonjs-module 1`] = `
355
355
" slug" : " test-mocks-commonjs-module-js-blend" ,
356
356
},
357
357
{
358
- " description" : " Create a new Book." ,
359
- " fullName" : " Book(title)" ,
360
- " name" : " Book" ,
361
- " params" : [
362
- {
363
- " description" : " - The title of the book." ,
364
- " name" : " title" ,
365
- " types" : [
366
- " string" ,
367
- ],
368
- },
369
- ],
358
+ " description" : " Create a color mixer." ,
359
+ " fullName" : " ColorMixer()" ,
360
+ " name" : " ColorMixer" ,
361
+ " params" : [],
370
362
" private" : false ,
371
363
" returns" : [],
372
- " slug" : " test-mocks-commonjs-module-js-book " ,
364
+ " slug" : " test-mocks-commonjs-module-js-colormixer " ,
373
365
},
374
366
{
375
367
" description" : " Button the shirt." ,
376
- " fullName" : " button()" ,
377
- " name" : " button" ,
368
+ " fullName" : " exports. button()" ,
369
+ " name" : " exports. button" ,
378
370
" params" : [],
379
371
" private" : false ,
380
372
" returns" : [],
381
- " slug" : " test-mocks-commonjs-module-js-button" ,
373
+ " slug" : " test-mocks-commonjs-module-js-exports- button" ,
382
374
},
383
375
{
384
- " description" : " Color mixer ." ,
385
- " fullName" : " module. exports()" ,
386
- " name" : " module. exports" ,
376
+ " description" : " Wash the shirt ." ,
377
+ " fullName" : " exports.wash ()" ,
378
+ " name" : " exports.wash " ,
387
379
" params" : [],
388
380
" private" : false ,
389
381
" returns" : [],
390
- " slug" : " test-mocks-commonjs-module-js-module- exports" ,
382
+ " slug" : " test-mocks-commonjs-module-js-exports-wash " ,
391
383
},
392
384
{
393
385
" description" : " Color mixer." ,
@@ -417,7 +409,7 @@ exports[`custom parser parse commonjs-module 1`] = `
417
409
" slug" : " test-mocks-commonjs-module-js-module-exports" ,
418
410
},
419
411
{
420
- " description" : " Create a color mixer." ,
412
+ " description" : " Color mixer." ,
421
413
" fullName" : " module.exports()" ,
422
414
" name" : " module.exports" ,
423
415
" params" : [],
@@ -434,14 +426,31 @@ exports[`custom parser parse commonjs-module 1`] = `
434
426
" returns" : [],
435
427
" slug" : " test-mocks-commonjs-module-js-module-exports" ,
436
428
},
429
+ {
430
+ " description" : " Create a new Book." ,
431
+ " fullName" : " this.Book(title)" ,
432
+ " name" : " this.Book" ,
433
+ " params" : [
434
+ {
435
+ " description" : " - The title of the book." ,
436
+ " name" : " title" ,
437
+ " types" : [
438
+ " string" ,
439
+ ],
440
+ },
441
+ ],
442
+ " private" : false ,
443
+ " returns" : [],
444
+ " slug" : " test-mocks-commonjs-module-js-this-book" ,
445
+ },
437
446
{
438
447
" description" : " The title of the book." ,
439
- " fullName" : " title()" ,
440
- " name" : " title" ,
448
+ " fullName" : " this. title()" ,
449
+ " name" : " this. title" ,
441
450
" params" : [],
442
451
" private" : false ,
443
452
" returns" : [],
444
- " slug" : " test-mocks-commonjs-module-js-title" ,
453
+ " slug" : " test-mocks-commonjs-module-js-this- title" ,
445
454
},
446
455
],
447
456
" path" : " ./test/mocks/commonjs-module.js" ,
@@ -513,6 +522,15 @@ exports[`custom parser parse es2015-classes 1`] = `
513
522
" returns" : [],
514
523
" slug" : " test-mocks-es-classes-js-constructor" ,
515
524
},
525
+ {
526
+ " description" : " Class representing a dot." ,
527
+ " fullName" : " Dot()" ,
528
+ " name" : " Dot" ,
529
+ " params" : [],
530
+ " private" : false ,
531
+ " returns" : [],
532
+ " slug" : " test-mocks-es-classes-js-dot" ,
533
+ },
516
534
{
517
535
" description" : " Get the dot's width." ,
518
536
" fullName" : " getWidth()" ,
@@ -582,15 +600,6 @@ exports[`custom parser parse es2015-classes 1`] = `
582
600
" returns" : [],
583
601
" slug" : " test-mocks-es-classes-js-point" ,
584
602
},
585
- {
586
- " description" : " Class representing a dot." ,
587
- " fullName" : " s()" ,
588
- " name" : " s" ,
589
- " params" : [],
590
- " private" : false ,
591
- " returns" : [],
592
- " slug" : " test-mocks-es-classes-js-s" ,
593
- },
594
603
],
595
604
" path" : " ./test/mocks/es2015-classes.js" ,
596
605
}
@@ -756,6 +765,38 @@ exports[`custom parser parse example jsdoc headers (declaration methods) 1`] = `
756
765
exports [` custom parser parse example jsdoc headers (function methods) 1` ] = `
757
766
{
758
767
" methods" : [
768
+ {
769
+ " description" : " Finds file in path. console.log(await findFileInPath('./', 'package.json')); console.log(await findFileInPath('../', 'package.json')); console.log(await findFileInPath('~/git/github/doxdox/', '.package.json'));" ,
770
+ " fullName" : " findFileInPath(input, fileName)" ,
771
+ " name" : " findFileInPath" ,
772
+ " params" : [
773
+ {
774
+ " description" : " Directory to check for file." ,
775
+ " name" : " input" ,
776
+ " types" : [
777
+ " string" ,
778
+ ],
779
+ },
780
+ {
781
+ " description" : " File name to check for." ,
782
+ " name" : " fileName" ,
783
+ " types" : [
784
+ " string" ,
785
+ ],
786
+ },
787
+ ],
788
+ " private" : false ,
789
+ " returns" : [
790
+ {
791
+ " description" : " Path to package.json file." ,
792
+ " name" : null ,
793
+ " types" : [
794
+ " Promise<string | null>" ,
795
+ ],
796
+ },
797
+ ],
798
+ " slug" : " test-mocks-function-js-findfileinpath" ,
799
+ },
759
800
{
760
801
" description" : " Get the current working directory." ,
761
802
" fullName" : " getCurrentWorkingDirectory()" ,
0 commit comments