From 702c9b677c75959c815d67cb25bc0471587d0283 Mon Sep 17 00:00:00 2001 From: micbou Date: Mon, 25 Feb 2019 12:55:13 +0100 Subject: [PATCH] Update TSServer to 3.3.3333 Fix Javascript formatting test. --- build.py | 2 +- ycmd/tests/javascript/subcommands_test.py | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build.py b/build.py index abc37a54b9..0b5e117fd2 100755 --- a/build.py +++ b/build.py @@ -94,7 +94,7 @@ '37c02deb37335668321643571e7316a231d94d07707325afdb83b16c953f2244' ) -TSSERVER_VERSION = '3.1.3' +TSSERVER_VERSION = '3.3.3333' BUILD_ERROR_MESSAGE = ( 'ERROR: the build failed.\n\n' diff --git a/ycmd/tests/javascript/subcommands_test.py b/ycmd/tests/javascript/subcommands_test.py index 297ae384de..454545c3d0 100644 --- a/ycmd/tests/javascript/subcommands_test.py +++ b/ycmd/tests/javascript/subcommands_test.py @@ -308,11 +308,11 @@ def Subcommands_Format_Range_Tabs_test( app ): 'filepath': filepath, 'range': { 'start': { - 'line_num': 6, + 'line_num': 5, 'column_num': 3, }, 'end': { - 'line_num': 11, + 'line_num': 8, 'column_num': 6 } }, @@ -326,6 +326,9 @@ def Subcommands_Format_Range_Tabs_test( app ): 'data': has_entries( { 'fixits': contains( has_entries( { 'chunks': contains( + ChunkMatcher( '\t', + LocationMatcher( filepath, 5, 1 ), + LocationMatcher( filepath, 5, 3 ) ), ChunkMatcher( '\t\t', LocationMatcher( filepath, 6, 1 ), LocationMatcher( filepath, 6, 5 ) ), @@ -335,9 +338,6 @@ def Subcommands_Format_Range_Tabs_test( app ): ChunkMatcher( '\t', LocationMatcher( filepath, 8, 1 ), LocationMatcher( filepath, 8, 3 ) ), - ChunkMatcher( ' ', - LocationMatcher( filepath, 8, 6 ), - LocationMatcher( filepath, 8, 6 ) ), ) } ) ) } )