TypeScript/tests/cases/fourslash/refactorAddOrRemoveBracesToArrowFunction2.ts

14 lines
362 B
TypeScript
Raw Normal View History

/// <reference path='fourslash.ts' />
//// const foo = /*a*/a/*b*/ => ({ a: 1 });
goTo.select("a", "b");
edit.applyRefactor({
2018-04-17 04:33:21 +02:00
refactorName: "Add or remove braces in an arrow function",
actionName: "Add braces to arrow function",
actionDescription: "Add braces to arrow function",
2018-04-25 12:25:47 +02:00
newContent: `const foo = a => {
return ({ a: 1 });
};`,
});