2020-04-23 20:59:38 +02:00
|
|
|
/// <reference path="fourslash.ts" />
|
|
|
|
|
|
|
|
// @Filename: /path.ts
|
|
|
|
////export declare function join(): void;
|
|
|
|
|
|
|
|
// @Filename: /os.ts
|
|
|
|
////export declare function homedir(): void;
|
|
|
|
|
|
|
|
// @Filename: /index.ts
|
|
|
|
////
|
|
|
|
////join();
|
|
|
|
////homedir();
|
|
|
|
|
|
|
|
goTo.file("/index.ts");
|
|
|
|
verify.codeFixAll({
|
|
|
|
fixId: "fixMissingImport",
|
|
|
|
fixAllDescription: "Add all missing imports",
|
2020-07-09 00:25:04 +02:00
|
|
|
newFileContent: `import { homedir } from "./os";
|
|
|
|
import { join } from "./path";
|
2020-04-23 20:59:38 +02:00
|
|
|
|
|
|
|
join();
|
|
|
|
homedir();`
|
|
|
|
});
|