Skip to content

Commit f3f6769

Browse files
committed
Convert @inheritdoc tests to verify.quickInfoAt
1 parent 8274699 commit f3f6769

File tree

2 files changed

+8
-360
lines changed

2 files changed

+8
-360
lines changed

tests/baselines/reference/inheritDoc.baseline

Lines changed: 0 additions & 356 deletions
This file was deleted.

tests/cases/fourslash/jsDocInheritDoc.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
////interface Baz {
2222
//// /** Baz#property1 documentation */
2323
//// property1: string;
24-
//// /** Baz#property2 documentation */
24+
//// /**
25+
//// * Baz#property2 documentation
26+
//// */
2527
//// property2: object;
2628
////}
2729
////class Bar extends Foo implements Baz {
@@ -33,11 +35,9 @@
3335
//// }
3436
//// /** @inheritDoc */
3537
//// static method1() {}
36-
//// /** @inheritDoc */
3738
//// method2() {}
3839
//// /** @inheritDoc */
3940
//// property1: string;
40-
//// /** @inheritDoc */
4141
//// property2: object;
4242
////}
4343
////const b = new Bar/*1*/(5);
@@ -46,4 +46,8 @@
4646
////const p1 = b.property1/*4*/;
4747
////const p2 = b.property2/*5*/;
4848

49-
verify.baselineQuickInfo();
49+
verify.quickInfoAt("1", "constructor Bar(value: number): Bar", undefined); // constructors aren't actually inherited
50+
verify.quickInfoAt("2", "(method) Bar.method2(): void", "Foo#method2 documentation");
51+
verify.quickInfoAt("3", "(method) Bar.method1(): void", undefined); // statics aren't actually inherited
52+
verify.quickInfoAt("4", "(property) Bar.property1: string", "Foo#property1 documentation");
53+
verify.quickInfoAt("5", "(property) Bar.property2: object", "Baz#property2 documentation");

0 commit comments

Comments
 (0)