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

29 lines
675 B
Go

package fourslash_test
import (
"testing"
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
)
func TestAddInterfaceMemberAboveClass(t *testing.T) {
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `
interface Intersection {
/*insertHere*/
}
interface Scene { }
class /*className*/Sphere {
constructor() {
}
}`
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
f.VerifyQuickInfoAt(t, "className", "class Sphere", "")
f.GoToMarker(t, "insertHere")
f.Insert(t, "ray: Ray;")
f.VerifyQuickInfoAt(t, "className", "class Sphere", "")
}