TypeScript/tests/cases/fourslash/completionsImportYieldExpression.ts
2020-03-25 15:27:47 -07:00

21 lines
349 B
TypeScript

/// <reference path="fourslash.ts" />
// @Filename: /a.ts
////export function a() {}
// @Filename: /b.ts
////function *f() {
//// yield a/**/
////}
verify.applyCodeActionFromCompletion("", {
name: "a",
source: "/a",
description: `Import 'a' from module "./a"`,
newFileContent: `import { a } from "./a";
function *f() {
yield a
}`
});