vendor tsgo
This commit is contained in:
38
tools/tsgo/internal/fourslash/tests/gen/quickinfo01_test.go
Normal file
38
tools/tsgo/internal/fourslash/tests/gen/quickinfo01_test.go
Normal file
@@ -0,0 +1,38 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual quickinfo01"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestQuickinfo01(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `// @lib: es5
|
||||
interface One {
|
||||
commonProperty: number;
|
||||
commonFunction(): number;
|
||||
}
|
||||
|
||||
interface Two {
|
||||
commonProperty: string
|
||||
commonFunction(): number;
|
||||
}
|
||||
|
||||
var /*1*/x : One | Two;
|
||||
|
||||
x./*2*/commonProperty;
|
||||
x./*3*/commonFunction;`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.MarkTestAsStradaServer()
|
||||
f.VerifyQuickInfoAt(t, "1", "var x: One | Two", "")
|
||||
f.VerifyQuickInfoAt(t, "2", "(property) commonProperty: string | number", "")
|
||||
f.VerifyQuickInfoAt(t, "3", "(method) commonFunction(): number", "")
|
||||
}
|
||||
Reference in New Issue
Block a user