Skip to content

Commit ebd8003

Browse files
committed
Fix javascript tests after tsserver upgrade
1 parent 76f06e5 commit ebd8003

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

ycmd/tests/javascript/subcommands_test.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,9 @@ def test_Subcommands_Format_Range_Spaces( self, app ):
330330
ChunkMatcher( ' ',
331331
LocationMatcher( filepath, 8, 1 ),
332332
LocationMatcher( filepath, 8, 3 ) ),
333+
ChunkMatcher( ' ',
334+
LocationMatcher( filepath, 8, 6 ),
335+
LocationMatcher( filepath, 8, 6 ) ),
333336
)
334337
} ) )
335338
} )
@@ -378,6 +381,9 @@ def test_Subcommands_Format_Range_Tabs( self, app ):
378381
ChunkMatcher( '\t',
379382
LocationMatcher( filepath, 8, 1 ),
380383
LocationMatcher( filepath, 8, 3 ) ),
384+
ChunkMatcher( ' ',
385+
LocationMatcher( filepath, 8, 6 ),
386+
LocationMatcher( filepath, 8, 6 ) ),
381387
)
382388
} ) )
383389
} )
@@ -690,16 +696,16 @@ def test_Subcommands_OrganizeImports( self, app ):
690696
matches_regexp(
691697
'import \\* as lib from "library";\r?\n'
692698
'import func, { func1, func2 } from "library";\r?\n' ),
693-
LocationMatcher( filepath, 1, 1 ),
694-
LocationMatcher( filepath, 2, 1 ) ),
699+
LocationMatcher( filepath, 1, 1 ),
700+
LocationMatcher( filepath, 2, 1 ) ),
695701
ChunkMatcher(
696702
'',
697-
LocationMatcher( filepath, 5, 1 ),
698-
LocationMatcher( filepath, 6, 1 ) ),
703+
LocationMatcher( filepath, 2, 1 ),
704+
LocationMatcher( filepath, 3, 1 ) ),
699705
ChunkMatcher(
700706
'',
701-
LocationMatcher( filepath, 9, 1 ),
702-
LocationMatcher( filepath, 10, 1 ) ),
707+
LocationMatcher( filepath, 3, 1 ),
708+
LocationMatcher( filepath, 4, 1 ) ),
703709
)
704710
} ) )
705711
} )
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import func from "library";
2+
import * as lib from "library";
3+
import { func1, func2 } from "library";
24

35
func();
46

5-
import * as lib from "library";
67

78
lib.func();
89

9-
import { func1, func2 } from "library";
1010

1111
func1();
1212
func2();

0 commit comments

Comments
 (0)