Skip to content

Commit 8003791

Browse files
author
Jesse Trinity
committed
add unit test
1 parent 428f5a1 commit 8003791

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/testRunner/unittests/services/organizeImports.ts

+16
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,22 @@ import "lib1";
591591
},
592592
{ path: "/lib1.ts", content: "" },
593593
{ path: "/lib2.ts", content: "" });
594+
595+
testOrganizeImports("SortComments",
596+
{
597+
path: "/test.ts",
598+
content: `
599+
// Header
600+
import "lib3";
601+
// Comment2
602+
import "lib2";
603+
// Comment1
604+
import "lib1";
605+
`,
606+
},
607+
{ path: "/lib1.ts", content: "" },
608+
{ path: "/lib2.ts", content: "" },
609+
{ path: "/lib3.ts", content: "" });
594610

595611
testOrganizeImports("AmbientModule",
596612
{

0 commit comments

Comments
 (0)