@@ -131,7 +131,7 @@ describe("Issue Tests", () => {
131
131
ok ( nsFoo . children ?. find ( ( r ) => r . name === "x" ) ) ;
132
132
} ) ;
133
133
134
- it ( "Supports computed names #941 " , ( ) => {
134
+ it ( "#941 Supports computed names " , ( ) => {
135
135
const project = convert ( ) ;
136
136
const obj = query ( project , "Obj" ) ;
137
137
equal (
@@ -397,7 +397,7 @@ describe("Issue Tests", () => {
397
397
equal ( ctor . sources [ 0 ] . character , 4 ) ;
398
398
} ) ;
399
399
400
- it ( "Handles comment discovery with expando functions #1651 " , ( ) => {
400
+ it ( "#1651 Handles comment discovery with expando functions " , ( ) => {
401
401
const project = convert ( ) ;
402
402
equal (
403
403
project . children ?. map ( ( c ) => c . name ) ,
@@ -954,7 +954,7 @@ describe("Issue Tests", () => {
954
954
) ;
955
955
} ) ;
956
956
957
- it ( "Handles types/values with same name #2106 " , ( ) => {
957
+ it ( "#2106 Handles types/values with same name " , ( ) => {
958
958
const project = convert ( ) ;
959
959
const balance = querySig ( project , "balance" ) ;
960
960
equal ( balance . type ?. type , "reference" ) ;
@@ -1104,7 +1104,7 @@ describe("Issue Tests", () => {
1104
1104
}
1105
1105
} ) ;
1106
1106
1107
- it ( "Handles implementationOf with symbols #2234 " , ( ) => {
1107
+ it ( "#2234 Handles implementationOf with symbols " , ( ) => {
1108
1108
const project = convert ( ) ;
1109
1109
const cm = query ( project , "CharMap" ) ;
1110
1110
equal (
@@ -1118,7 +1118,7 @@ describe("Issue Tests", () => {
1118
1118
) ;
1119
1119
} ) ;
1120
1120
1121
- it ( "Handles http links with TS link resolution #2270 " , ( ) => {
1121
+ it ( "#2270 Handles http links with TS link resolution " , ( ) => {
1122
1122
const project = convert ( ) ;
1123
1123
const links = getLinks ( query ( project , "A" ) ) ;
1124
1124
equal ( links , [
@@ -1133,7 +1133,7 @@ describe("Issue Tests", () => {
1133
1133
] ) ;
1134
1134
} ) ;
1135
1135
1136
- it ( "Handles comments on interfaces with call signatures #2290 " , ( ) => {
1136
+ it ( "#2290 Handles comments on interfaces with call signatures " , ( ) => {
1137
1137
const project = convert ( ) ;
1138
1138
1139
1139
equal ( getComment ( project , "CallSignature" ) , "Int comment" ) ;
@@ -1156,14 +1156,14 @@ describe("Issue Tests", () => {
1156
1156
) ;
1157
1157
} ) ;
1158
1158
1159
- it ( "Does not warn on notDocumented edge case #2291 " , ( ) => {
1159
+ it ( "#2291 Does not warn on notDocumented edge case " , ( ) => {
1160
1160
app . options . setValue ( "validation" , { notDocumented : true } ) ;
1161
1161
const project = convert ( ) ;
1162
1162
app . validate ( project ) ;
1163
1163
logger . expectNoOtherMessages ( ) ;
1164
1164
} ) ;
1165
1165
1166
- it ( "Supports TS 5.0 #2296 " , ( ) => {
1166
+ it ( "#2296 Supports TS 5.0 " , ( ) => {
1167
1167
const project = convert ( ) ;
1168
1168
const names = query ( project , "names" ) ;
1169
1169
equal ( names . type ?. toString ( ) , 'readonly ["Alice", "Bob", "Eve"]' ) ;
@@ -1174,7 +1174,7 @@ describe("Issue Tests", () => {
1174
1174
equal ( tp . flags . isConst , true ) ;
1175
1175
} ) ;
1176
1176
1177
- it ( "Detects source locations coming from types and prefers value declarations, #2307 " , ( ) => {
1177
+ it ( "#2307 Detects source locations coming from types and prefers value declarations, " , ( ) => {
1178
1178
const project = convert ( ) ;
1179
1179
1180
1180
const getLines = ( name : string ) => {
@@ -1189,14 +1189,14 @@ describe("Issue Tests", () => {
1189
1189
equal ( getLines ( "all" ) , [ 8 , 9 ] ) ;
1190
1190
} ) ;
1191
1191
1192
- it ( "Uses type parameters from parent class in arrow-methods, #2320 " , ( ) => {
1192
+ it ( "#2320 Uses type parameters from parent class in arrow-methods, " , ( ) => {
1193
1193
const project = convert ( ) ;
1194
1194
const arrow = querySig ( project , "ResolvedSubclass.arrowFunction" ) ;
1195
1195
1196
1196
equal ( arrow . typeParameters ! [ 0 ] . type ?. toString ( ) , '"one" | "two"' ) ;
1197
1197
} ) ;
1198
1198
1199
- it ( "Handles comments with nested methods #2336 " , ( ) => {
1199
+ it ( "#2336 Handles comments with nested methods " , ( ) => {
1200
1200
const project = convert ( ) ;
1201
1201
1202
1202
const outer = querySig ( project , "ClassVersion.outer" ) ;
@@ -1211,15 +1211,15 @@ describe("Issue Tests", () => {
1211
1211
) ;
1212
1212
} ) ;
1213
1213
1214
- it ( "Supports nested paths with tsLinkResolution #2360 " , ( ) => {
1214
+ it ( "#2360 Supports nested paths with tsLinkResolution " , ( ) => {
1215
1215
const project = convert ( ) ;
1216
1216
const x = query ( project , "x" ) ;
1217
1217
const link = x . comment ?. summary [ 0 ] ;
1218
1218
equal ( link ?. kind , "inline-tag" ) ;
1219
1219
equal ( link . target , query ( project , "Foo.bar" ) ) ;
1220
1220
} ) ;
1221
1221
1222
- it ( "Handles duplicate declarations with @namespace #2364 " , ( ) => {
1222
+ it ( "#2364 Handles duplicate declarations with @namespace " , ( ) => {
1223
1223
const project = convert ( ) ;
1224
1224
equal (
1225
1225
project . children ?. map ( ( c ) => c . name ) ,
@@ -1232,7 +1232,7 @@ describe("Issue Tests", () => {
1232
1232
) ;
1233
1233
} ) ;
1234
1234
1235
- it ( "Gets properties when types/variables are merged with @namespace #2364 " , ( ) => {
1235
+ it ( "#2364 Gets properties when types/variables are merged with @namespace " , ( ) => {
1236
1236
const project = convert ( ) ;
1237
1237
const ns = project . children ?. find (
1238
1238
( c ) => c . name == "NS2" && c . kind == ReflectionKind . Namespace ,
@@ -1243,7 +1243,7 @@ describe("Issue Tests", () => {
1243
1243
) ;
1244
1244
} ) ;
1245
1245
1246
- it ( "Puts delegate type alias comments on the type alias #2372 " , ( ) => {
1246
+ it ( "#2372 Puts delegate type alias comments on the type alias " , ( ) => {
1247
1247
const project = convert ( ) ;
1248
1248
equal (
1249
1249
getComment ( project , "EventHandler" ) ,
@@ -1259,7 +1259,7 @@ describe("Issue Tests", () => {
1259
1259
equal ( Comment . combineDisplayParts ( typeSig ?. comment ?. summary ) , "" ) ;
1260
1260
} ) ;
1261
1261
1262
- it ( "Handles spaces in JSDoc default parameter names #2384 " , ( ) => {
1262
+ it ( "#2384 Handles spaces in JSDoc default parameter names " , ( ) => {
1263
1263
const project = convert ( ) ;
1264
1264
const Typed = query ( project , "Typed" ) ;
1265
1265
equal ( Typed . typeParameters ?. length , 1 ) ;
@@ -1271,7 +1271,7 @@ describe("Issue Tests", () => {
1271
1271
) ;
1272
1272
} ) ;
1273
1273
1274
- it ( "Handles @template parameter constraints correctly, #2389 " , ( ) => {
1274
+ it ( "#2389 Handles @template parameter constraints correctly, " , ( ) => {
1275
1275
const project = convert ( ) ;
1276
1276
const foo = query ( project , "foo" ) ;
1277
1277
equal ( foo . signatures ?. length , 1 ) ;
@@ -1286,15 +1286,15 @@ describe("Issue Tests", () => {
1286
1286
// a single declare module can still have a comment on them, but it looks really
1287
1287
// weird and wrong if there are multiple declare module statements in a file...
1288
1288
// there's probably some nicer way of doing this that I'm not seeing right now.
1289
- it ( "Uses module comment discovery on 'declare module \"foo\"' #2401 " , ( ) => {
1289
+ it ( "#2401 Uses module comment discovery on 'declare module \"foo\"' " , ( ) => {
1290
1290
const project = convert ( ) ;
1291
1291
equal (
1292
1292
Comment . combineDisplayParts ( project . comment ?. summary ) ,
1293
1293
"Comment for module" ,
1294
1294
) ;
1295
1295
} ) ;
1296
1296
1297
- it ( "Includes index signature comments #2414 " , ( ) => {
1297
+ it ( "#2414 Includes index signature comments " , ( ) => {
1298
1298
const project = convert ( ) ;
1299
1299
equal (
1300
1300
Comment . combineDisplayParts (
@@ -1305,7 +1305,7 @@ describe("Issue Tests", () => {
1305
1305
) ;
1306
1306
} ) ;
1307
1307
1308
- it ( "Handles destructured object parameter defaults, #2430 " , ( ) => {
1308
+ it ( "#2430 Handles destructured object parameter defaults, " , ( ) => {
1309
1309
const project = convert ( ) ;
1310
1310
const Checkbox = querySig ( project , "Checkbox" ) ;
1311
1311
equal ( Checkbox . parameters ?. length , 1 ) ;
@@ -1322,7 +1322,7 @@ describe("Issue Tests", () => {
1322
1322
) ;
1323
1323
} ) ;
1324
1324
1325
- it ( "Handles function-namespaces created with Object.assign #2436 " , ( ) => {
1325
+ it ( "#2436 Handles function-namespaces created with Object.assign " , ( ) => {
1326
1326
const project = convert ( ) ;
1327
1327
equal ( query ( project , "bug" ) . kind , ReflectionKind . Function ) ;
1328
1328
const foo = query ( project , "bug.foo" ) ;
@@ -1333,32 +1333,32 @@ describe("Issue Tests", () => {
1333
1333
equal ( bar . kind , ReflectionKind . Property , "property" ) ;
1334
1334
} ) ;
1335
1335
1336
- it ( "Does not warn due to the diamond problem in comment discovery #2437 " , ( ) => {
1336
+ it ( "#2437 Does not warn due to the diamond problem in comment discovery " , ( ) => {
1337
1337
convert ( ) ;
1338
1338
logger . expectNoOtherMessages ( ) ;
1339
1339
} ) ;
1340
1340
1341
- it ( "Handles recursive aliases without looping infinitely #2438 " , ( ) => {
1341
+ it ( "#2438 Handles recursive aliases without looping infinitely " , ( ) => {
1342
1342
const bad = query ( convert ( ) , "Bad" ) ;
1343
1343
equal ( bad . kind , ReflectionKind . Interface ) ;
1344
1344
} ) ;
1345
1345
1346
- it ( "Handles transient symbols correctly, #2444 " , ( ) => {
1346
+ it ( "#2444 Handles transient symbols correctly, " , ( ) => {
1347
1347
const project = convert ( ) ;
1348
1348
const boolEq = query ( project , "Boolean.equal" ) ;
1349
1349
const numEq = query ( project , "Number.equal" ) ;
1350
1350
equal ( boolEq . signatures ! [ 0 ] . parameters ! [ 0 ] . type ?. toString ( ) , "boolean" ) ;
1351
1351
equal ( numEq . signatures ! [ 0 ] . parameters ! [ 0 ] . type ?. toString ( ) , "number" ) ;
1352
1352
} ) ;
1353
1353
1354
- it ( "Handles unions created due to union within intersection, #2451 " , ( ) => {
1354
+ it ( "#2451 Handles unions created due to union within intersection, " , ( ) => {
1355
1355
const project = convert ( ) ;
1356
1356
1357
1357
const is = querySig ( project , "FooA.is" ) ;
1358
1358
equal ( is . type ?. toString ( ) , "this is Foo & Object" ) ;
1359
1359
} ) ;
1360
1360
1361
- it ( "Does not care about conversion order for @link resolution, #2466 " , ( ) => {
1361
+ it ( "#2466 Does not care about conversion order for @link resolution, " , ( ) => {
1362
1362
const project = convert ( ) ;
1363
1363
1364
1364
const Two = query ( project , "Two" ) ;
@@ -1378,7 +1378,7 @@ describe("Issue Tests", () => {
1378
1378
] ) ;
1379
1379
} ) ;
1380
1380
1381
- it ( "Creates a separate namespace for `declare namespace` case #2476 " , ( ) => {
1381
+ it ( "#2476 Creates a separate namespace for `declare namespace` case " , ( ) => {
1382
1382
const project = convert ( ) ;
1383
1383
1384
1384
equal (
@@ -1395,7 +1395,7 @@ describe("Issue Tests", () => {
1395
1395
) ;
1396
1396
} ) ;
1397
1397
1398
- it ( "Creates a separate namespace for `declare namespace` case with variables #2478 " , ( ) => {
1398
+ it ( "#2478 Creates a separate namespace for `declare namespace` case with variables " , ( ) => {
1399
1399
const project = convert ( ) ;
1400
1400
1401
1401
equal (
@@ -1412,7 +1412,7 @@ describe("Issue Tests", () => {
1412
1412
) ;
1413
1413
} ) ;
1414
1414
1415
- it ( "Does not crash when rendering recursive hierarchy, #2495 " , ( ) => {
1415
+ it ( "#2495 Does not crash when rendering recursive hierarchy, " , ( ) => {
1416
1416
const project = convert ( ) ;
1417
1417
1418
1418
const theme = new DefaultTheme ( app . renderer ) ;
@@ -1422,18 +1422,18 @@ describe("Issue Tests", () => {
1422
1422
context . hierarchyTemplate ( page ) ;
1423
1423
} ) ;
1424
1424
1425
- it ( "Correctly cleans up references to functions #2496 " , ( ) => {
1425
+ it ( "#2496 Correctly cleans up references to functions " , ( ) => {
1426
1426
app . options . setValue ( "excludeNotDocumented" , true ) ;
1427
1427
convert ( ) ;
1428
1428
} ) ;
1429
1429
1430
- it ( "Sorts literal numeric unions when converting a type, #2502 " , ( ) => {
1430
+ it ( "#2502 Sorts literal numeric unions when converting a type, " , ( ) => {
1431
1431
const project = convert ( ) ;
1432
1432
const refl = query ( project , "Test" ) ;
1433
1433
equal ( refl . type ?. toString ( ) , "1 | 2 | 3" ) ;
1434
1434
} ) ;
1435
1435
1436
- it ( "Handles an infinitely recursive type, #2507 " , ( ) => {
1436
+ it ( "#2507 Handles an infinitely recursive type, " , ( ) => {
1437
1437
const project = convert ( ) ;
1438
1438
const type = querySig ( project , "fromPartial" ) . typeParameters ! [ 0 ] . type ;
1439
1439
@@ -1451,15 +1451,15 @@ describe("Issue Tests", () => {
1451
1451
equal ( type ?. toString ( ) , "Value & Object" ) ;
1452
1452
} ) ;
1453
1453
1454
- it ( "Handles constructed references to enumeration types, #2508 " , ( ) => {
1454
+ it ( "#2508 Handles constructed references to enumeration types, " , ( ) => {
1455
1455
const project = convert ( ) ;
1456
1456
const refl = query ( project , "Bar.color" ) ;
1457
1457
equal ( refl . type ?. type , "reference" ) ;
1458
1458
equal ( refl . type . toString ( ) , "Color" ) ;
1459
1459
equal ( refl . type . reflection ?. id , query ( project , "Color" ) . id ) ;
1460
1460
} ) ;
1461
1461
1462
- it ( "Does not duplicate comments due to signatures being present, #2509 " , ( ) => {
1462
+ it ( "#2509 Does not duplicate comments due to signatures being present, " , ( ) => {
1463
1463
const project = convert ( ) ;
1464
1464
const cb = query ( project , "Int.cb" ) ;
1465
1465
equal ( Comment . combineDisplayParts ( cb . comment ?. summary ) , "Cb" ) ;
@@ -1474,7 +1474,7 @@ describe("Issue Tests", () => {
1474
1474
equal ( cb2 . type . declaration . signatures ! [ 0 ] . comment , undefined ) ;
1475
1475
} ) ;
1476
1476
1477
- it ( "Specifying comment on variable still inherits signature comments, #2521 " , ( ) => {
1477
+ it ( "#2521 Specifying comment on variable still inherits signature comments, " , ( ) => {
1478
1478
const project = convert ( ) ;
1479
1479
1480
1480
equal ( getComment ( project , "fooWithoutComment" ) , "" ) ;
@@ -1486,7 +1486,16 @@ describe("Issue Tests", () => {
1486
1486
equal ( getSigComment ( project , "fooWithComment" , 1 ) , "Overload 2" ) ;
1487
1487
} ) ;
1488
1488
1489
- it ( "Ignores @license and @import comments, #2552" , ( ) => {
1489
+ it . skip ( "#2545 discovers comments from non-exported 'parent' methods" , ( ) => {
1490
+ // Currently failing
1491
+ const project = convert ( ) ;
1492
+
1493
+ equal ( getComment ( project , "Child.notAbstract" ) , "notAbstract docs" ) ;
1494
+ equal ( getComment ( project , "Child.notAbstract2" ) , "notAbstract2 docs" ) ;
1495
+ equal ( getComment ( project , "Child.isAbstract" ) , "isAbstract docs" ) ;
1496
+ } ) ;
1497
+
1498
+ it ( "#2552 Ignores @license and @import comments, " , ( ) => {
1490
1499
const project = convert ( ) ;
1491
1500
equal (
1492
1501
Comment . combineDisplayParts ( project . comment ?. summary ) ,
@@ -1495,7 +1504,7 @@ describe("Issue Tests", () => {
1495
1504
equal ( getComment ( project , "something" ) , "" ) ;
1496
1505
} ) ;
1497
1506
1498
- it ( "Does not warn about documented constructor signature type aliases, #2553 " , ( ) => {
1507
+ it ( "#2553 Does not warn about documented constructor signature type aliases, " , ( ) => {
1499
1508
const project = convert ( ) ;
1500
1509
app . validate ( project ) ;
1501
1510
logger . expectNoOtherMessages ( ) ;
0 commit comments