2025-10-15 10:12:44 +03:00

22 lines
613 B
Go

package fourslash_test
import (
"testing"
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
)
func TestRename01(t *testing.T) {
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `///<reference path="./Bar.ts" />
[|function [|{| "contextRangeIndex": 0 |}Bar|]() {
// This is a reference to [|Bar|] in a comment.
"this is a reference to [|Bar|] in a string"
}|]`
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
f.VerifyBaselineRename(t, nil /*preferences*/, f.Ranges()[1])
}