Skip to content

Commit 2c13fec

Browse files
author
MQuy
committed
Remove SortComments test and fix organizeImport6
1 parent c22b697 commit 2c13fec

File tree

3 files changed

+8
-36
lines changed

3 files changed

+8
-36
lines changed

src/testRunner/unittests/services/organizeImports.ts

-17
Original file line numberDiff line numberDiff line change
@@ -679,23 +679,6 @@ import "lib1";
679679
{ path: "/lib1.ts", content: "" },
680680
{ path: "/lib2.ts", content: "" });
681681

682-
testOrganizeImports("SortComments",
683-
/*skipDestructiveCodeActions*/ false,
684-
{
685-
path: "/test.ts",
686-
content: `
687-
// Header
688-
import "lib3";
689-
// Comment2
690-
import "lib2";
691-
// Comment1
692-
import "lib1";
693-
`,
694-
},
695-
{ path: "/lib1.ts", content: "" },
696-
{ path: "/lib2.ts", content: "" },
697-
{ path: "/lib3.ts", content: "" });
698-
699682
testOrganizeImports("AmbientModule",
700683
/*skipDestructiveCodeActions*/ false,
701684
{

tests/baselines/reference/organizeImports/SortComments.ts

-17
This file was deleted.

tests/cases/fourslash/organizeImports6.ts

+8-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616
//// anotherThing;
1717

1818
verify.organizeImports(
19-
`import * as anotherThing from "someopath"; /* small comment */ // single line one.
19+
`/* some comment here
20+
* and there
21+
*/
22+
import * as anotherThing from "someopath"; /* small comment */ // single line one.
23+
/* some comment here
24+
* and there
25+
*/
2026
21-
anotherThing;`);
27+
anotherThing;`);

0 commit comments

Comments
 (0)