vendor tsgo
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual signatureHelpOnOverloadsDifferentArity"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestSignatureHelpOnOverloadsDifferentArity(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `declare function f(s: string);
|
||||
declare function f(n: number);
|
||||
declare function f(s: string, b: boolean);
|
||||
declare function f(n: number, b: boolean);
|
||||
|
||||
f(1/**/`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.GoToMarker(t, "")
|
||||
f.VerifySignatureHelp(t, fourslash.VerifySignatureHelpOptions{Text: "f(n: number): any", ParameterName: "n", ParameterSpan: "n: number", OverloadsCount: 4})
|
||||
f.Insert(t, ", ")
|
||||
f.VerifySignatureHelp(t, fourslash.VerifySignatureHelpOptions{Text: "f(n: number, b: boolean): any", ParameterName: "b", ParameterSpan: "b: boolean", OverloadsCount: 4})
|
||||
}
|
||||
Reference in New Issue
Block a user