37 lines
975 B
Go
37 lines
975 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual importNameCodeFixUMDGlobal1"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestImportNameCodeFixUMDGlobal1(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @AllowSyntheticDefaultImports: false
|
|
// @Module: esnext
|
|
// @Filename: a/f1.ts
|
|
[|import { bar } from "./foo";
|
|
|
|
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";
|
|
import { bar } from "./foo";
|
|
|
|
export function test() { };
|
|
bar1.bar();`,
|
|
}, nil /*preferences*/)
|
|
}
|