36 lines
989 B
Go
36 lines
989 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual jsDocFunctionSignatures8"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestJsDocFunctionSignatures8(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @allowJs: true
|
|
// @Filename: Foo.js
|
|
/**
|
|
* Represents a person
|
|
* a b multiline test
|
|
* @constructor
|
|
* @param {string} name The name of the person
|
|
* @param {number} age The age of the person
|
|
*/
|
|
function Person(name, age) {
|
|
this.name = name;
|
|
this.age = age;
|
|
}
|
|
var p = new Pers/**/on();`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.GoToMarker(t, "")
|
|
f.VerifyQuickInfoIs(t, "constructor Person(name: string, age: number): Person", "Represents a person\na b multiline test")
|
|
}
|