File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1125,6 +1125,69 @@ foo(
11251125================================================================================
11261126` ;
11271127
1128+ exports[` jsdoc .js 1 ` ] = `
1129+ ==================================== options ==================================== =
1130+ parsers : [" flow" , " babel" ]
1131+ printWidth : 80
1132+ | printWidth
1133+ ==================================== = input ======================================
1134+ /** @type {any} */
1135+ const x = (
1136+ <div >
1137+ <div />
1138+ </div >
1139+ );
1140+
1141+ /**
1142+ * @type {object}
1143+ */
1144+ () => (
1145+ <div >
1146+ sajdfpoiasdjfpoiasdjfpoiasdjfpoiadsjfpaoisdjfapsdiofjapioisadfaskfaspiofjp
1147+ </div >
1148+ );
1149+
1150+ /**
1151+ * @type {object}
1152+ */
1153+ function HelloWorld() {
1154+ return (
1155+ <div >
1156+ <span >Test</span >
1157+ </div >
1158+ );
1159+ }
1160+ ==================================== = output ==================================== =
1161+ /** @type {any} */
1162+ const x = (
1163+ <div >
1164+ <div />
1165+ </div >
1166+ );
1167+
1168+ /**
1169+ * @type {object}
1170+ */
1171+ () => (
1172+ <div >
1173+ sajdfpoiasdjfpoiasdjfpoiasdjfpoiadsjfpaoisdjfapsdiofjapioisadfaskfaspiofjp
1174+ </div >
1175+ );
1176+
1177+ /**
1178+ * @type {object}
1179+ */
1180+ function HelloWorld() {
1181+ return (
1182+ <div >
1183+ <span >Test</span >
1184+ </div >
1185+ );
1186+ }
1187+
1188+ ================================================================================
1189+ ` ;
1190+
11281191exports[` jsx .js 1 ` ] = `
11291192==================================== options ==================================== =
11301193parsers : [" flow" , " babel" ]
Original file line number Diff line number Diff line change 1+ /** @type {any } */
2+ const x = (
3+ < div >
4+ < div />
5+ </ div >
6+ ) ;
7+
8+ /**
9+ * @type {object }
10+ */
11+ ( ) => (
12+ < div >
13+ sajdfpoiasdjfpoiasdjfpoiasdjfpoiadsjfpaoisdjfapsdiofjapioisadfaskfaspiofjp
14+ </ div >
15+ ) ;
16+
17+ /**
18+ * @type {object }
19+ */
20+ function HelloWorld ( ) {
21+ return (
22+ < div >
23+ < span > Test</ span >
24+ </ div >
25+ ) ;
26+ }
You can’t perform that action at this time.
0 commit comments