vendor tsgo
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestJsDocFunctionSignatures2(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `// @allowNonTsExtensions: true
|
||||
// @Filename: Foo.js
|
||||
/** @type {(arg0: string, arg1?: boolean) => number} */
|
||||
var f6;
|
||||
|
||||
f6('', /**/false)`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.GoToMarker(t, "")
|
||||
f.VerifySignatureHelp(t, fourslash.VerifySignatureHelpOptions{Text: "f6(arg0: string, arg1?: boolean): number"})
|
||||
}
|
||||
Reference in New Issue
Block a user