vendor tsgo
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual quickinfoVerbosityEnum"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestQuickinfoVerbosityEnum(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `// @filename: a.ts
|
||||
export {};
|
||||
enum Color/*c*/ {
|
||||
Red,
|
||||
Green,
|
||||
Blue,
|
||||
}
|
||||
const x/*x*/: Color = Color.Red;
|
||||
const enum Direction/*d*/ {
|
||||
Up,
|
||||
Down,
|
||||
}
|
||||
const y/*y*/: Direction = Direction.Up;
|
||||
enum Flags/*f*/ {
|
||||
None = 0,
|
||||
IsDirectory = 1 << 0,
|
||||
IsFile = 1 << 1,
|
||||
IsSymlink = 1 << 2,
|
||||
}
|
||||
// @filename: b.ts
|
||||
export enum Color {
|
||||
Red = "red"
|
||||
}
|
||||
// @filename: c.ts
|
||||
import { Color } from "./b";
|
||||
const c: Color/*a*/ = Color.Red;`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.VerifyBaselineHoverWithVerbosity(t, map[string][]int{"c": {0, 1}, "x": {0, 1}, "d": {0, 1}, "y": {0, 1}, "f": {0, 1}, "a": {0, 1}})
|
||||
}
|
||||
Reference in New Issue
Block a user