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

37 lines
1017 B
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual quickInfoOnJsxNamespacedNameWithDoc1"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestQuickInfoOnJsxNamespacedNameWithDoc1(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @jsx: react
// @Filename: /types.d.ts
declare namespace JSX {
interface IntrinsicElements {
'my-el': {
/** This appears */
foo: string;
/** This also appears */
'prop:foo': string;
};
}
}
// @filename: /a.tsx
<my-el /*1*/prop:foo="bar" /*2*/foo="baz" />`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyQuickInfoAt(t, "1", "(property) 'prop:foo': string", "This also appears")
f.VerifyQuickInfoAt(t, "2", "(property) foo: string", "This appears")
}