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

32 lines
984 B
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual quickInfoWithNestedDestructuredParameterInLambda"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestQuickInfoWithNestedDestructuredParameterInLambda(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @filename: a.tsx
import * as React from 'react';
interface SomeInterface {
someBoolean: boolean,
someString: string;
}
interface SomeProps {
someProp: SomeInterface;
}
export const /*1*/SomeStatelessComponent = ({someProp: { someBoolean, someString}}: SomeProps) => (<div>{` + "`" + `${someBoolean}${someString}` + "`" + `});`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.GoToMarker(t, "1")
f.VerifyQuickInfoExists(t)
}