vendor tsgo
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
// 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)
|
||||
}
|
||||
Reference in New Issue
Block a user