From 96f210c1c87222aa50f85871da49d39f055fdfaa Mon Sep 17 00:00:00 2001 From: Jesse Trinity Date: Tue, 26 May 2020 10:37:34 -0700 Subject: [PATCH] arrow function refactor test --- .../refactorAddOrRemoveBracesToArrowFunctionBody.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/cases/fourslash/refactorAddOrRemoveBracesToArrowFunctionBody.ts 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