@@ -438,6 +438,38 @@ exports[`custom parser parse example from JSDoc documentation https://jsdoc.app/
438
438
" returns" : [],
439
439
" slug" : " test-mocks-commonjs-module-js-colormixer" ,
440
440
},
441
+ {
442
+ " description" : " Darken a color by the given percentage." ,
443
+ " fullName" : " darken(color, percent)" ,
444
+ " name" : " darken" ,
445
+ " params" : [
446
+ {
447
+ " description" : " - The color, in hexadecimal format." ,
448
+ " name" : " color" ,
449
+ " types" : [
450
+ " string" ,
451
+ ],
452
+ },
453
+ {
454
+ " description" : " - The percentage, ranging from 0 to 100." ,
455
+ " name" : " percent" ,
456
+ " types" : [
457
+ " number" ,
458
+ ],
459
+ },
460
+ ],
461
+ " private" : false ,
462
+ " returns" : [
463
+ {
464
+ " description" : " The darkened color." ,
465
+ " name" : null ,
466
+ " types" : [
467
+ " string" ,
468
+ ],
469
+ },
470
+ ],
471
+ " slug" : " test-mocks-commonjs-module-js-darken" ,
472
+ },
441
473
{
442
474
" description" : " Button the shirt." ,
443
475
" fullName" : " exports.button()" ,
@@ -447,6 +479,15 @@ exports[`custom parser parse example from JSDoc documentation https://jsdoc.app/
447
479
" returns" : [],
448
480
" slug" : " test-mocks-commonjs-module-js-exports-button" ,
449
481
},
482
+ {
483
+ " description" : " Unbutton the shirt." ,
484
+ " fullName" : " exports.unbutton()" ,
485
+ " name" : " exports.unbutton" ,
486
+ " params" : [],
487
+ " private" : false ,
488
+ " returns" : [],
489
+ " slug" : " test-mocks-commonjs-module-js-exports-unbutton" ,
490
+ },
450
491
{
451
492
" description" : " Wash the shirt." ,
452
493
" fullName" : " exports.wash()" ,
@@ -458,12 +499,12 @@ exports[`custom parser parse example from JSDoc documentation https://jsdoc.app/
458
499
},
459
500
{
460
501
" description" : " Color mixer." ,
461
- " fullName" : " module.exports ()" ,
462
- " name" : " module.exports " ,
502
+ " fullName" : " mixer ()" ,
503
+ " name" : " mixer " ,
463
504
" params" : [],
464
505
" private" : false ,
465
506
" returns" : [],
466
- " slug" : " test-mocks-commonjs-module-js-module-exports " ,
507
+ " slug" : " test-mocks-commonjs-module-js-mixer " ,
467
508
},
468
509
{
469
510
" description" : " Color mixer." ,
@@ -484,12 +525,35 @@ exports[`custom parser parse example from JSDoc documentation https://jsdoc.app/
484
525
" slug" : " test-mocks-commonjs-module-js-module-exports" ,
485
526
},
486
527
{
487
- " description" : " Color mixer ." ,
488
- " fullName" : " module.exports()" ,
528
+ " description" : " Blend two colors together ." ,
529
+ " fullName" : " module.exports(color1, color2 )" ,
489
530
" name" : " module.exports" ,
490
- " params" : [],
531
+ " params" : [
532
+ {
533
+ " description" : " - The first color, in hexadecimal format." ,
534
+ " name" : " color1" ,
535
+ " types" : [
536
+ " string" ,
537
+ ],
538
+ },
539
+ {
540
+ " description" : " - The second color, in hexadecimal format." ,
541
+ " name" : " color2" ,
542
+ " types" : [
543
+ " string" ,
544
+ ],
545
+ },
546
+ ],
491
547
" private" : false ,
492
- " returns" : [],
548
+ " returns" : [
549
+ {
550
+ " description" : " The blended color." ,
551
+ " name" : null ,
552
+ " types" : [
553
+ " string" ,
554
+ ],
555
+ },
556
+ ],
493
557
" slug" : " test-mocks-commonjs-module-js-module-exports" ,
494
558
},
495
559
{
@@ -501,6 +565,38 @@ exports[`custom parser parse example from JSDoc documentation https://jsdoc.app/
501
565
" returns" : [],
502
566
" slug" : " test-mocks-commonjs-module-js-module-exports" ,
503
567
},
568
+ {
569
+ " description" : " Darken a color by the given percentage." ,
570
+ " fullName" : " module.exports.darken(color, percent)" ,
571
+ " name" : " module.exports.darken" ,
572
+ " params" : [
573
+ {
574
+ " description" : " - The color, in hexadecimal format." ,
575
+ " name" : " color" ,
576
+ " types" : [
577
+ " string" ,
578
+ ],
579
+ },
580
+ {
581
+ " description" : " - The percentage, ranging from 0 to 100." ,
582
+ " name" : " percent" ,
583
+ " types" : [
584
+ " number" ,
585
+ ],
586
+ },
587
+ ],
588
+ " private" : false ,
589
+ " returns" : [
590
+ {
591
+ " description" : " The darkened color." ,
592
+ " name" : null ,
593
+ " types" : [
594
+ " string" ,
595
+ ],
596
+ },
597
+ ],
598
+ " slug" : " test-mocks-commonjs-module-js-module-exports-darken" ,
599
+ },
504
600
{
505
601
" description" : " Create a new Book." ,
506
602
" fullName" : " this.Book(title)" ,
@@ -527,6 +623,33 @@ exports[`custom parser parse example from JSDoc documentation https://jsdoc.app/
527
623
" returns" : [],
528
624
" slug" : " test-mocks-commonjs-module-js-this-title" ,
529
625
},
626
+ {
627
+ " description" : " Wash the shirt." ,
628
+ " fullName" : " wash()" ,
629
+ " name" : " wash" ,
630
+ " params" : [],
631
+ " private" : false ,
632
+ " returns" : [],
633
+ " slug" : " test-mocks-commonjs-module-js-wash" ,
634
+ },
635
+ {
636
+ " description" : " Wash the shirt." ,
637
+ " fullName" : " wash()" ,
638
+ " name" : " wash" ,
639
+ " params" : [],
640
+ " private" : false ,
641
+ " returns" : [],
642
+ " slug" : " test-mocks-commonjs-module-js-wash" ,
643
+ },
644
+ {
645
+ " description" : " Shirt module." ,
646
+ " fullName" : " wash()" ,
647
+ " name" : " wash" ,
648
+ " params" : [],
649
+ " private" : false ,
650
+ " returns" : [],
651
+ " slug" : " test-mocks-commonjs-module-js-wash" ,
652
+ },
530
653
],
531
654
" path" : " ./test/mocks/commonjs-module.js" ,
532
655
}
@@ -599,6 +722,31 @@ exports[`custom parser parse example from JSDoc documentation https://jsdoc.app/
599
722
" returns" : [],
600
723
" slug" : " test-mocks-es-classes-js-dot" ,
601
724
},
725
+ {
726
+ " description" : " Convert a string containing two comma-separated numbers into a point." ,
727
+ " fullName" : " fromString(str)" ,
728
+ " name" : " fromString" ,
729
+ " params" : [
730
+ {
731
+ " description" : " - The string containing two comma-separated numbers." ,
732
+ " name" : " str" ,
733
+ " types" : [
734
+ " string" ,
735
+ ],
736
+ },
737
+ ],
738
+ " private" : false ,
739
+ " returns" : [
740
+ {
741
+ " description" : " A Point object." ,
742
+ " name" : null ,
743
+ " types" : [
744
+ " Point" ,
745
+ ],
746
+ },
747
+ ],
748
+ " slug" : " test-mocks-es-classes-js-fromstring" ,
749
+ },
602
750
{
603
751
" description" : " Get the dot's width." ,
604
752
" fullName" : " getWidth()" ,
@@ -775,6 +923,37 @@ exports[`custom parser parse example from JSDoc documentation https://jsdoc.app/
775
923
exports [` custom parser parse example from JSDoc documentation https://jsdoc.app/ parse params 1` ] = `
776
924
{
777
925
" methods" : [
926
+ {
927
+ " description" : " Assign the project to an employee." ,
928
+ " fullName" : " Project.assign(employee, employee.name, employee.department)" ,
929
+ " name" : " Project.assign" ,
930
+ " params" : [
931
+ {
932
+ " description" : " - The employee who is responsible for the project." ,
933
+ " name" : " employee" ,
934
+ " types" : [
935
+ " Object" ,
936
+ ],
937
+ },
938
+ {
939
+ " description" : " - The name of the employee." ,
940
+ " name" : " employee.name" ,
941
+ " types" : [
942
+ " string" ,
943
+ ],
944
+ },
945
+ {
946
+ " description" : " - The employee's department." ,
947
+ " name" : " employee.department" ,
948
+ " types" : [
949
+ " string" ,
950
+ ],
951
+ },
952
+ ],
953
+ " private" : false ,
954
+ " returns" : [],
955
+ " slug" : " test-mocks-params-js-project-prototype-assign" ,
956
+ },
778
957
{
779
958
" description" : " Assign the project to an employee." ,
780
959
" fullName" : " Project.assign(employee, employee.name, employee.department)" ,
0 commit comments