mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-11 01:34:55 -06:00
convert import tests
This commit is contained in:
parent
57e856b0b4
commit
665e434832
@ -0,0 +1,9 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
/////*a1*/im/*a2*/port { /*a3*//*b3*/x, y as z, T } fro/*b2*/m "m";/*b1*/
|
||||
|
||||
// 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);
|
||||
verify.refactorAvailable("Convert import", "Convert named imports to namespace import");
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
/////*a1*/im/*a2*/port * as /*a3*//*b3*/m from "m/*b2*/";/*b1*/
|
||||
|
||||
// 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);
|
||||
verify.refactorAvailable("Convert import", "Convert namespace import to named imports");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user