add unit test

This commit is contained in:
Jesse Trinity
2020-05-15 11:45:49 -07:00
parent 428f5a19d6
commit 8003791d9f
@@ -591,6 +591,22 @@ import "lib1";
},
{ path: "/lib1.ts", content: "" },
{ path: "/lib2.ts", content: "" });
testOrganizeImports("SortComments",
{
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",
{