34 lines
912 B
Go
34 lines
912 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual importNameCodeFixUMDGlobal0"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestImportNameCodeFixUMDGlobal0(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @AllowSyntheticDefaultImports: false
|
|
// @Module: es2015
|
|
// @Filename: a/f1.ts
|
|
[|export function test() { };
|
|
bar1/*0*/.bar;|]
|
|
// @Filename: a/foo.d.ts
|
|
export declare function bar(): number;
|
|
export as namespace bar1; `
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyImportFixAtPosition(t, []string{
|
|
`import * as bar1 from "./foo";
|
|
|
|
export function test() { };
|
|
bar1.bar;`,
|
|
}, nil /*preferences*/)
|
|
}
|