Skip to content

Commit

Permalink
Remove SortComments test and fix organizeImport6
Browse files Browse the repository at this point in the history
  • Loading branch information
MQuy committed Mar 28, 2022
1 parent c22b697 commit 2c13fec
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 36 deletions.
17 changes: 0 additions & 17 deletions src/testRunner/unittests/services/organizeImports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -679,23 +679,6 @@ import "lib1";
{ path: "/lib1.ts", content: "" },
{ path: "/lib2.ts", content: "" });

testOrganizeImports("SortComments",
/*skipDestructiveCodeActions*/ false,
{
path: "/test.ts",
content: `
// Header
import "lib3";
// Comment2
import "lib2";
// Comment1
import "lib1";
`,
},
{ path: "/lib1.ts", content: "" },
{ path: "/lib2.ts", content: "" },
{ path: "/lib3.ts", content: "" });

testOrganizeImports("AmbientModule",
/*skipDestructiveCodeActions*/ false,
{
Expand Down
17 changes: 0 additions & 17 deletions tests/baselines/reference/organizeImports/SortComments.ts

This file was deleted.

10 changes: 8 additions & 2 deletions tests/cases/fourslash/organizeImports6.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
//// anotherThing;

verify.organizeImports(
`import * as anotherThing from "someopath"; /* small comment */ // single line one.
`/* some comment here
* and there
*/
import * as anotherThing from "someopath"; /* small comment */ // single line one.
/* some comment here
* and there
*/
anotherThing;`);
anotherThing;`);

0 comments on commit 2c13fec

Please sign in to comment.