kittenipc/kitcom/internal/tsgo/fourslash/tests/gen/renameBindingElementInitializerExternal_test.go
2025-10-15 10:12:44 +03:00

30 lines
759 B
Go

package fourslash_test
import (
"testing"
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
)
func TestRenameBindingElementInitializerExternal(t *testing.T) {
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `[|const [|{| "contextRangeIndex": 0 |}external|] = true;|]
function f({
lvl1 = [|external|],
nested: { lvl2 = [|external|]},
oldName: newName = [|external|]
}) {}
const {
lvl1 = [|external|],
nested: { lvl2 = [|external|]},
oldName: newName = [|external|]
} = obj;`
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
f.VerifyBaselineRenameAtRangesWithText(t, nil /*preferences*/, "external")
}