mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-18 07:29:16 -05:00
update test names
This commit is contained in:
@@ -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");
|
||||
@@ -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");
|
||||
@@ -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");
|
||||
@@ -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");
|
||||
}
|
||||
Reference in New Issue
Block a user