TypeScript/tests/cases/fourslash/moveToNewFile_defaultImport.ts

19 lines
287 B
TypeScript
Raw Normal View History

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