vendor tsgo
This commit is contained in:
36
tools/tsgo/internal/fourslash/tests/gen/jsDocSee4_test.go
Normal file
36
tools/tsgo/internal/fourslash/tests/gen/jsDocSee4_test.go
Normal file
@@ -0,0 +1,36 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual jsDocSee4"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestJsDocSee4(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `class [|/*def1*/A|] {
|
||||
foo () { }
|
||||
}
|
||||
declare const [|/*def2*/a|]: A;
|
||||
/**
|
||||
* @see {/*use1*/[|A|]#foo}
|
||||
*/
|
||||
const t1 = 1
|
||||
/**
|
||||
* @see {/*use2*/[|a|].foo()}
|
||||
*/
|
||||
const t2 = 1
|
||||
/**
|
||||
* @see {@link /*use3*/[|a|].foo()}
|
||||
*/
|
||||
const t3 = 1`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.VerifyBaselineGoToDefinition(t, false, "use1", "use2", "use3")
|
||||
}
|
||||
Reference in New Issue
Block a user