Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
iisaduan committed Oct 21, 2024
1 parent 03ffc58 commit 90e89e6
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions tests/cases/fourslash/moveToFile_namespaceImport.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/// <reference path='fourslash.ts' />

// @Filename: /a.ts
//// export type ExecutionPoint = string;
////

// @Filename: /b.ts
//// import * as A from "./a";
////
//// [|async function fn1(point: A.ExecutionPoint) {}|]
////
//// async function fn2(point: A.ExecutionPoint) {}
////

// @Filename: /point.ts
////

verify.moveToFile({
newFileContents: {
"/b.ts":
`import * as A from "./a";
async function fn2(point: A.ExecutionPoint) {}
`,
"/point.ts":
`import * as A from "./a";
async function fn1(point: A.ExecutionPoint) { }
`,
},
interactiveRefactorArguments: { targetFile: "/point.ts" },
});

0 comments on commit 90e89e6

Please sign in to comment.