TypeScript/tests/cases/fourslash/refactorAddOrRemoveBracesToArrowFunction10.ts

12 lines
366 B
TypeScript
Raw Normal View History

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