29 lines
732 B
Go
29 lines
732 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual renameStringPropertyNames2"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestRenameStringPropertyNames2(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `type Props = {
|
|
foo: boolean;
|
|
}
|
|
|
|
let { foo }: Props = null as any;
|
|
foo;
|
|
|
|
let asd: Props = { "foo"/**/: true }; // rename foo here`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyBaselineRename(t, nil /*preferences*/, "")
|
|
}
|