vendor tsgo
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual docCommentTemplateFunctionWithParameters"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestDocCommentTemplateFunctionWithParameters(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `// @Filename: functionWithParams.ts
|
||||
/*0*/
|
||||
/*1*/
|
||||
function foo(x: number, y: string): boolean {}`
|
||||
capabilities := fourslash.GetDefaultCapabilities()
|
||||
capabilities.TextDocument.Completion.CompletionItem.SnippetSupport = new(false)
|
||||
f, done := fourslash.NewFourslash(t, capabilities, content)
|
||||
defer done()
|
||||
f.GoToMarker(t, "0")
|
||||
f.VerifyJSDocCompletion(t, "0", 7, `/**
|
||||
*
|
||||
* @param x
|
||||
* @param y
|
||||
*/`, nil)
|
||||
f.VerifyJSDocCompletion(t, "1", 0, `/**
|
||||
*
|
||||
* @param x
|
||||
* @param y
|
||||
*/`, nil)
|
||||
}
|
||||
Reference in New Issue
Block a user