31 lines
639 B
Go
31 lines
639 B
Go
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
|
|
"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
|
|
)
|
|
|
|
func TestJsDocFunctionSignatures7(t *testing.T) {
|
|
t.Parallel()
|
|
t.Skip()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @allowJs: true
|
|
// @Filename: Foo.js
|
|
/**
|
|
* @param {string} p0
|
|
* @param {string} [p1]
|
|
*/
|
|
function Test(p0, p1) {
|
|
this.P0 = p0;
|
|
this.P1 = p1;
|
|
}
|
|
|
|
|
|
var /**/test = new Test("");`
|
|
f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
f.GoToMarker(t, "")
|
|
f.VerifyQuickInfoIs(t, "var test: Test", "")
|
|
}
|