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

32 lines
752 B
Go

package fourslash_test
import (
"testing"
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
)
func TestGetJavaScriptQuickInfo7(t *testing.T) {
t.Parallel()
t.Skip()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @allowNonTsExtensions: true
// @Filename: file.js
/**
* This is a very cool function that is very nice.
* @returns something
* @param p anotherthing
*/
function a1(p) {
try {
throw new Error('x');
} catch (x) { x--; }
return 23;
}
x - /**/a1()`
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
f.VerifyQuickInfoAt(t, "", "function a1(p: any): number", "This is a very cool function that is very nice.")
}