TypeScript/tests/cases/fourslash/moveToNewFile_moveNamespaceImport.ts

20 lines
311 B
TypeScript
Raw Normal View History

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