TypeScript/tests/cases/fourslash/refactorConvertArrowFunctionOrFunctionExpression_ToArrow_EmptyReturn.ts
2018-10-31 14:27:36 +01:00

16 lines
385 B
TypeScript

/// <reference path='fourslash.ts' />
//// const foo = /*x*/f/*y*/unction() {
//// return;
//// };
goTo.select("x", "y");
edit.applyRefactor({
refactorName: "Convert arrow function or function expression",
actionName: "Convert to arrow function",
actionDescription: "Convert to arrow function",
newContent: `const foo = () => {
return;
};`,
});