diff --git a/tests/cases/fourslash/refactorAddOrRemoveBracesToArrowFunctionBody.ts b/tests/cases/fourslash/refactorAddOrRemoveBracesToArrowFunctionBody.ts new file mode 100644 index 00000000000..587f26ded43 --- /dev/null +++ b/tests/cases/fourslash/refactorAddOrRemoveBracesToArrowFunctionBody.ts @@ -0,0 +1,7 @@ +/// + +//// const a = (a: number) => { return/*a*//*b*/ a; }; + +// an invoked refactor request for a cursor in the body should return a refactor +goTo.select("a", "b"); +verify.refactorAvailableForTriggerReason("invoked","Add or remove braces in an arrow function", "Remove braces from arrow function"); \ No newline at end of file