TypeScript/tests/cases/fourslash/refactorAddOrRemoveBracesToArrowFunction20.ts
2018-05-23 10:22:17 +08:00

15 lines
413 B
TypeScript

/// <reference path='fourslash.ts' />
//// const foo = /*a*/a/*b*/ => {
//// // return comment
//// return a;
//// };
goTo.select("a", "b");
edit.applyRefactor({
refactorName: "Add or remove braces in an arrow function",
actionName: "Remove braces from arrow function",
actionDescription: "Remove braces from arrow function",
newContent: `const foo = a => /* return comment*/ a;`,
});