vendor tsgo
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual quickinfoVerbosityTuple"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestQuickinfoVerbosityTuple(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `interface Orange {
|
||||
color: string;
|
||||
}
|
||||
interface Apple {
|
||||
color: string;
|
||||
other: Orange;
|
||||
}
|
||||
type TwoFruits/*T*/ = [Orange, Apple];
|
||||
const tf/*f*/: TwoFruits = [
|
||||
{ color: "orange" },
|
||||
{ color: "red", other: { color: "orange" } }
|
||||
];
|
||||
const tf2/*f2*/: [Orange, Apple] = [
|
||||
{ color: "orange" },
|
||||
{ color: "red", other: { color: "orange" } }
|
||||
];
|
||||
type ManyFruits/*m*/ = (Orange | Apple)[];
|
||||
const mf/*mf*/: ManyFruits = [];`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.VerifyBaselineHoverWithVerbosity(t, map[string][]int{"T": {0, 1, 2}, "f": {0, 1, 2, 3}, "f2": {0, 1, 2}, "m": {0, 1, 2}, "mf": {0, 1, 2, 3}})
|
||||
}
|
||||
Reference in New Issue
Block a user