vendor tsgo
This commit is contained in:
29
tools/tsgo/internal/fourslash/tests/gen/references01_test.go
Normal file
29
tools/tsgo/internal/fourslash/tests/gen/references01_test.go
Normal file
@@ -0,0 +1,29 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual references01"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestReferences01(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `// @lib: es5
|
||||
// @Filename: /home/src/workspaces/project/referencesForGlobals_1.ts
|
||||
class /*0*/globalClass {
|
||||
public f() { }
|
||||
}
|
||||
// @Filename: /home/src/workspaces/project/referencesForGlobals_2.ts
|
||||
///<reference path="referencesForGlobals_1.ts" />
|
||||
var c = /*1*/globalClass();`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.MarkTestAsStradaServer()
|
||||
f.VerifyBaselineFindAllReferences(t, "1")
|
||||
}
|
||||
Reference in New Issue
Block a user