remove some case

This commit is contained in:
王文璐 2018-05-24 18:00:42 +08:00
parent de75f14d2b
commit 5497b42558
2 changed files with 0 additions and 29 deletions

View File

@ -1,16 +0,0 @@
/// <reference path='fourslash.ts' />
//// const foo = /*a*/a/*b*/ =>
//// /* expression comment */
//// a + 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 => {
/* expression comment */
return a + 1;
}`,
});

View File

@ -1,13 +0,0 @@
/// <reference path='fourslash.ts' />
//// const foo = /*a*/a/*b*/ => {
//// return;
//// };
goTo.select("a", "b");
edit.applyRefactor({
refactorName: "Add or remove braces in an arrow function",
actionName: "Remove braces from arrow function",
actionDescription: "Remove braces from arrow function",
newContent: `const foo = a => void 0`,
});