mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
33 lines
975 B
Go
33 lines
975 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual getEditsForFileRename_ambientModule"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestGetEditsForFileRename_ambientModule(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @Filename: /tsconfig.json
|
|
{}
|
|
// @Filename: /sub/types.d.ts
|
|
// @Symlink: /node_modules/sub/types.d.ts
|
|
declare module "sub" {
|
|
declare export const abc: number
|
|
}
|
|
// @Filename: /sub/package.json
|
|
// @Symlink: /node_modules/sub/package.json
|
|
{ "types": "types.d.ts" }
|
|
// @Filename: /a.ts
|
|
import { abc } from "sub";`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyWillRenameFilesEdits(t, "/a.ts", "/b.ts", map[string]string{}, nil /*preferences*/)
|
|
}
|