TypeScript/tests/cases/fourslash/refactorAddOrRemoveBracesToArrowFunctionForTriggerReason1.ts

9 lines
433 B
TypeScript
Raw Normal View History

2020-05-27 02:51:00 +02:00
/// <reference path='fourslash.ts' />
//// const a = (a: number) => { return/*a*//*b*/ a; };
2020-06-03 04:06:12 +02:00
// Only offer refactor for empty span in body if explicity requested
2020-05-27 02:51:00 +02:00
goTo.select("a", "b");
verify.not.refactorAvailableForTriggerReason("implicit", "Add or remove braces in an arrow function");
verify.refactorAvailableForTriggerReason("invoked", "Add or remove braces in an arrow function", "Remove braces from arrow function");