18 lines
370 B
TypeScript
18 lines
370 B
TypeScript
|
/// <reference path="fourslash.ts" />
|
||
|
|
||
|
// @Filename: /a.ts
|
||
|
//// export default Math.foo;
|
||
|
|
||
|
// @Filename: /index.ts
|
||
|
//// a/**/
|
||
|
|
||
|
verify.applyCodeActionFromCompletion("", {
|
||
|
name: "a",
|
||
|
source: "/a",
|
||
|
description: `Import default 'a' from module "./a"`,
|
||
|
newFileContent: `import a from "./a";\n\na`,
|
||
|
preferences: {
|
||
|
includeCompletionsForModuleExports: true
|
||
|
}
|
||
|
});
|