@@ -132,7 +132,7 @@ describe("Convert", () => {
132132 it ( "uses getath which returns a path to create the URI" , ( ) => {
133133 const path = "/c/d/e/f/g/h/i/j.txt"
134134 const identifier = Convert . editorToTextDocumentIdentifier ( createFakeEditor ( path ) )
135- expect ( identifier . uri ) . equals ( " file://" + path )
135+ expect ( identifier . uri ) . equals ( ` file://${ path } ` )
136136 } )
137137 } )
138138
@@ -142,7 +142,7 @@ describe("Convert", () => {
142142 const editor = createFakeEditor ( path , "abc\ndefgh\nijkl" )
143143 editor . setCursorBufferPosition ( new Point ( 1 , 2 ) )
144144 const params = Convert . editorToTextDocumentPositionParams ( editor )
145- expect ( params . textDocument . uri ) . equals ( " file://" + path )
145+ expect ( params . textDocument . uri ) . equals ( ` file://${ path } ` )
146146 expect ( params . position ) . deep . equals ( { line : 1 , character : 2 } )
147147 } )
148148
@@ -152,7 +152,7 @@ describe("Convert", () => {
152152 const editor = createFakeEditor ( path , "abcdef\nghijkl\nmnopq" )
153153 editor . setCursorBufferPosition ( new Point ( 1 , 1 ) )
154154 const params = Convert . editorToTextDocumentPositionParams ( editor , specifiedPoint )
155- expect ( params . textDocument . uri ) . equals ( " file://" + path )
155+ expect ( params . textDocument . uri ) . equals ( ` file://${ path } ` )
156156 expect ( params . position ) . deep . equals ( { line : 911 , character : 112 } )
157157 } )
158158 } )
0 commit comments