46 lines
1.1 KiB
Go
46 lines
1.1 KiB
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual quickinfoVerbosityImport"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestQuickinfoVerbosityImport(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @module: esnext
|
|
// @filename: /0.ts
|
|
export type Apple = {
|
|
a: number;
|
|
b: string;
|
|
}
|
|
export const a: Apple = { a: 1, b: "2"};
|
|
export enum Color {
|
|
Red,
|
|
Green,
|
|
Blue,
|
|
}
|
|
// @filename: /1.ts
|
|
import * as zero from "./0";
|
|
const b/*b*/ = zero;
|
|
// @filename: /2.ts
|
|
import { a/*a*/ } from "./0";
|
|
import { Color/*c*/ } from "./0";
|
|
// @filename: /3.ts
|
|
export default class {
|
|
a: boolean;
|
|
}
|
|
// @filename: /4.ts
|
|
import Foo/*d*/ from "./3";
|
|
const f/*e*/ = new Foo/*f*/();`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyBaselineHoverWithVerbosity(t, map[string][]int{"b": {0, 1, 2}, "a": {0, 1}, "c": {0, 1}, "d": {0}, "e": {0, 1}, "f": {0, 1}})
|
|
}
|