2018-04-16 08:31:37 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
//// const foo = /*a*/a/*b*/ => { return { 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",
|
2018-04-16 08:31:37 +02:00
|
|
|
actionName: "Remove braces from arrow function",
|
|
|
|
actionDescription: "Remove braces from arrow function",
|
|
|
|
newContent: `const foo = a => ({ a: 1 });`,
|
|
|
|
});
|