Skip to content

Commit 8a13eab

Browse files
Add marker before baz: to test property name hover
Co-authored-by: DanielRosenwasser <[email protected]>
1 parent f6b3006 commit 8a13eab

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/fourslash/tests/destructuredInterfaceJSDoc_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ interface FooBar {
2222
2323
declare const fubar: FooBar;
2424
25-
const {/*1*/foo, /*2*/bar, baz: /*3*/biz} = fubar;
25+
const {/*1*/foo, /*2*/bar, /*3*/baz: /*4*/biz} = fubar;
2626
`
2727
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
2828
defer done()
2929
f.VerifyQuickInfoAt(t, "1", "const foo: number", "foo comment")
3030
f.VerifyQuickInfoAt(t, "2", "const bar: string", "bar comment")
31-
f.VerifyQuickInfoAt(t, "3", "const biz: string", "baz comment")
31+
f.VerifyQuickInfoAt(t, "3", "(property) FooBar.baz: string", "baz comment")
32+
f.VerifyQuickInfoAt(t, "4", "const biz: string", "baz comment")
3233
}
3334

3435
func TestDestructuredInterfaceJSDocWithRename(t *testing.T) {

0 commit comments

Comments
 (0)