fix some indices

This commit is contained in:
Jesse Trinity 2020-05-26 12:56:36 -07:00
parent fbf6737ae2
commit dc363f10fc
4 changed files with 8 additions and 8 deletions

View File

@ -1,9 +1,9 @@
/// <reference path='fourslash.ts' />
/////*a1*/ex/*a2*/port def/*a3*//*b3*/ault functio/*b2*/n f() {}/*b1*/
/////*1a*/ex/*2a*/port def/*3a*//*3b*/ault functio/*2b*/n f() {}/*1b*/
// verify that the refactor is offered for full, partial, and empty spans.
for (const m of ["1", "2", "3"]) {
goTo.select("a" + m, "b" + m);
goTo.select(m + "a", m + "b");
verify.refactorAvailableForTriggerReason("invoked", "Convert export", "Convert default export to named export");
}

View File

@ -1,9 +1,9 @@
/// <reference path='fourslash.ts' />
/////*a1*/ex/*a2*/port f/*a3*//*b3*/unctio/*b2*/n f() {}/*b1*/
/////*1a*/ex/*2a*/port f/*3a*//*3b*/unctio/*2b*/n f() {}/*1b*/
// verify that the refactor is offered for full, partial, and empty spans.
for (const m of ["1", "2", "3"]) {
goTo.select("a" + m, "b" + m);
goTo.select(m + "a", m + "b");
verify.refactorAvailableForTriggerReason("invoked", "Convert export", "Convert named export to default export");
}

View File

@ -1,9 +1,9 @@
/// <reference path='fourslash.ts' />
/////*a1*/im/*a2*/port { /*a3*//*b3*/x, y as z, T } fro/*b2*/m "m";/*b1*/
/////*1a*/im/*2a*/port { /*3a*//*3b*/x, y as z, T } fro/*2b*/m "m";/*1b*/
// verify that the refactor is offered for full, partial, and empty spans.
for (const m of ["1", "2", "3"]) {
goTo.select("a" + m, "b" + m);
goTo.select(m + "a", m + "b");
verify.refactorAvailableForTriggerReason("invoked", "Convert import", "Convert named imports to namespace import");
}

View File

@ -1,9 +1,9 @@
/// <reference path='fourslash.ts' />
/////*a1*/im/*a2*/port * as /*a3*//*b3*/m from "m/*b2*/";/*b1*/
/////*1a*/im/*2a*/port * as /*3a*//*3b*/m from "m/*2b*/";/*1b*/
// verify that the refactor is offered for full, partial, and empty spans.
for (const m of ["1", "2", "3"]) {
goTo.select("a" + m, "b" + m);
goTo.select(m + "a", m + "b");
verify.refactorAvailableForTriggerReason("invoked","Convert import", "Convert namespace import to named imports");
}