TypeScript/tests/cases/fourslash/importNameCodeFixReExport.ts
2018-01-17 15:29:41 -08:00

17 lines
353 B
TypeScript

/// <reference path='fourslash.ts' />
// Test that we are not fooled by a re-export existing in the file already
// @Filename: /a.ts
////export const x = 0";
// @Filename: /b.ts
////[|export { x } from "./a";
////x;|]
goTo.file("/b.ts");
verify.rangeAfterCodeFix(`import { x } from "./a";
export { x } from "./a";
x;`, /*includeWhiteSpace*/ true);