Files
kjol/tools/tsgo/internal/fourslash/tests/gen/jsDocPropertyDescription1_test.go
2026-07-09 16:50:43 -04:00

32 lines
1001 B
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual jsDocPropertyDescription1"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestJsDocPropertyDescription1(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `interface StringExample {
/** Something generic */
[p: string]: any;
/** Something specific */
property: number;
}
function stringExample(e: StringExample) {
console.log(e./*property*/property);
console.log(e./*string*/anything);
}`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyQuickInfoAt(t, "property", "(property) StringExample.property: number", "Something specific")
f.VerifyQuickInfoAt(t, "string", "(index) StringExample[string]: any", "Something generic")
}