TypeScript/tests/cases/fourslash/moveToNewFile_moveNamedImport.ts

20 lines
327 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts' />
// @Filename: /a.ts
////import { foo as oFoo } from './other';
////[|export const x = oFoo();|]
////export const a = 0;
verify.moveToNewFile({
newFileContents: {
"/a.ts":
`export const a = 0;`,
"/x.ts":
`import { foo as oFoo } from './other';
export const x = oFoo();
`
},
});