2018-04-16 08:31:37 +02:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
2018-04-17 04:33:21 +02:00
|
|
|
//// const foo = /*a*/a/*b*/ => (1, 2, 3);
|
2018-04-16 08:31:37 +02:00
|
|
|
|
|
|
|
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: "Add braces to arrow function",
|
|
|
|
actionDescription: "Add braces to arrow function",
|
2018-04-25 12:25:47 +02:00
|
|
|
newContent: `const foo = a => {
|
|
|
|
return (1, 2, 3);
|
|
|
|
};`,
|
2018-04-16 08:31:37 +02:00
|
|
|
});
|