@@ -56,7 +56,9 @@ namespace ts {
56
56
57
57
it ( "Sort - invalid vs invalid" , ( ) => {
58
58
assertSortsBefore (
59
+ // tslint:disable-next-line no-invalid-template-strings
59
60
"import y from `${'lib1'}`;" ,
61
+ // tslint:disable-next-line no-invalid-template-strings
60
62
"import x from `${'lib2'}`;" ) ;
61
63
} ) ;
62
64
@@ -69,12 +71,14 @@ namespace ts {
69
71
it ( "Sort - non-relative vs invalid" , ( ) => {
70
72
assertSortsBefore (
71
73
`import y from "lib";` ,
74
+ // tslint:disable-next-line no-invalid-template-strings
72
75
"import x from `${'lib'}`;" ) ;
73
76
} ) ;
74
77
75
78
it ( "Sort - relative vs invalid" , ( ) => {
76
79
assertSortsBefore (
77
80
`import y from "./lib";` ,
81
+ // tslint:disable-next-line no-invalid-template-strings
78
82
"import x from `${'lib'}`;" ) ;
79
83
} ) ;
80
84
@@ -357,7 +361,7 @@ F2();
357
361
358
362
assert . equal ( node1 . kind , node2 . kind ) ;
359
363
360
- switch ( node1 . kind ) {
364
+ switch ( node1 . kind ) {
361
365
case SyntaxKind . ImportDeclaration :
362
366
const decl1 = node1 as ImportDeclaration ;
363
367
const decl2 = node2 as ImportDeclaration ;
@@ -369,6 +373,7 @@ F2();
369
373
const clause2 = node2 as ImportClause ;
370
374
assertEqual ( clause1 . name , clause2 . name ) ;
371
375
assertEqual ( clause1 . namedBindings , clause2 . namedBindings ) ;
376
+ break ;
372
377
case SyntaxKind . NamespaceImport :
373
378
const nsi1 = node1 as NamespaceImport ;
374
379
const nsi2 = node2 as NamespaceImport ;
0 commit comments