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

25 lines
600 B
Go

package fourslash_test
import (
"testing"
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
)
func TestQuickInfoOnUndefined(t *testing.T) {
t.Parallel()
t.Skip()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `function foo(a: string) {
}
foo(/*1*/undefined);
var x = {
undefined: 10
};
x./*2*/undefined = 30;`
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
f.VerifyQuickInfoAt(t, "1", "var undefined", "")
f.VerifyQuickInfoAt(t, "2", "(property) undefined: number", "")
}