mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
30 lines
827 B
Go
30 lines
827 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual importNameCodeFix_getCanonicalFileName"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestImportNameCodeFix_getCanonicalFileName(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @Filename: /howNow/node_modules/brownCow/index.d.ts
|
|
export const foo: number;
|
|
// @Filename: /howNow/a.ts
|
|
foo;`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.GoToFile(t, "/howNow/a.ts")
|
|
f.VerifyImportFixAtPosition(t, []string{
|
|
`import { foo } from "brownCow";
|
|
|
|
foo;`,
|
|
}, nil /*preferences*/)
|
|
}
|