// Code generated by convertFourslash; DO NOT EDIT. // To modify this test, run "npm run makemanual importNameCodeFixUMDGlobalJavaScript" package fourslash_test import ( "testing" "github.com/microsoft/typescript-go/internal/fourslash" "github.com/microsoft/typescript-go/internal/testutil" ) func TestImportNameCodeFixUMDGlobalJavaScript(t *testing.T) { fourslash.SkipIfFailing(t) t.Parallel() defer testutil.RecoverAndFail(t, "Panic on fourslash test") const content = `// @AllowSyntheticDefaultImports: false // @Module: commonjs // @CheckJs: true // @AllowJs: true // @Filename: a/f1.js [|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*/) }