// Code generated by convertFourslash; DO NOT EDIT. // To modify this test, run "npm run makemanual arityErrorAfterStringCompletions" package fourslash_test import ( "testing" "github.com/microsoft/typescript-go/internal/fourslash" . "github.com/microsoft/typescript-go/internal/fourslash/tests/util" "github.com/microsoft/typescript-go/internal/testutil" ) func TestArityErrorAfterStringCompletions(t *testing.T) { fourslash.SkipIfFailing(t) t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @strict: true interface Events { click: any; drag: any; } declare function addListener(type: K, listener: (ev: Events[K]) => any): void; /*1*/addListener/*2*/("/*3*/")` f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content) defer done() f.VerifyCompletions(t, []string{"3"}, &fourslash.CompletionsExpectedList{ IsIncomplete: false, ItemDefaults: &fourslash.CompletionsExpectedItemDefaults{ CommitCharacters: &DefaultCommitCharacters, EditRange: Ignored, }, Items: &fourslash.CompletionsExpectedItems{ Exact: []fourslash.CompletionsExpectedItem{ "click", "drag", }, }, }) f.VerifyErrorExistsBetweenMarkers(t, "1", "2") }