14 lines
344 B
TypeScript
14 lines
344 B
TypeScript
/// <reference path='fourslash.ts' />
|
|
|
|
//// const foo = /*a*/a/*b*/ => 1;
|
|
|
|
goTo.select("a", "b");
|
|
edit.applyRefactor({
|
|
refactorName: "Add or remove braces in an arrow function",
|
|
actionName: "Add braces to arrow function",
|
|
actionDescription: "Add braces to arrow function",
|
|
newContent: `const foo = a => {
|
|
return 1;
|
|
};`,
|
|
});
|