update test names

This commit is contained in:
Jesse Trinity
2020-05-26 17:51:00 -07:00
parent 3825d193f6
commit 673a86833a
4 changed files with 16 additions and 19 deletions

View File

@@ -1,7 +0,0 @@
/// <reference path='fourslash.ts' />
//// 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");

View File

@@ -0,0 +1,8 @@
/// <reference path='fourslash.ts' />
//// const a = (a: number) => { return/*a*//*b*/ a; };
// Only offer refactor for empty span if explicity requested
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");

View File

@@ -0,0 +1,8 @@
/// <reference path='fourslash.ts' />
//// var x: str/*a*//*b*/ing;
// Only offer refactor for empty span if explicity requested
goTo.select("a", "b");
verify.not.refactorAvailableForTriggerReason("implicit", "Extract type");
verify.refactorAvailableForTriggerReason("invoked", "Extract type");

View File

@@ -1,12 +0,0 @@
/// <reference path='fourslash.ts' />
//// var x: /*1a*/{ a?:/*2a*/ number, b?: string/*2b*//*3a*//*3b*/ }/*1b*/ = { };
// Only offer refactor for empty span if explicity requested
goTo.select("3a", "3b");
verify.refactorNotAvailableForTriggerReason("implicit", "Extract type");
for (const m of ["1", "2", "3"]) {
goTo.select(m + "a", m + "b");
verify.refactorAvailableForTriggerReason("invoked", "Extract type");
}