25 lines
549 B
Go
25 lines
549 B
Go
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
|
|
)
|
|
|
|
func TestQuickInfoDisplayPartsFunctionExpression(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `var /*1*/x = function /*2*/foo() {
|
|
/*3*/foo();
|
|
};
|
|
var /*4*/y = function () {
|
|
};
|
|
(function /*5*/foo1() {
|
|
/*6*/foo1();
|
|
})();`
|
|
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
f.VerifyBaselineHover(t)
|
|
}
|