File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
editors/code/src/test/utils/diagnotics Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ describe('mapRustDiagnosticToVsCode', () => {
212212 assert . strictEqual (
213213 diagnostic . message ,
214214 [
215- ' can\ 't compare `{integer}` with `&str`' ,
215+ " can't compare `{integer}` with `&str`" ,
216216 'the trait `std::cmp::PartialEq<&str>` is not implemented for `{integer}`' ,
217217 ] . join ( '\n' ) ,
218218 ) ;
@@ -229,8 +229,8 @@ describe('mapRustDiagnosticToVsCode', () => {
229229 // The file url should be normal file
230230 // Ignore the first part because it depends on vs workspace location
231231 assert . strictEqual (
232- true ,
233- location . uri . toString ( ) . endsWith ( 'src/main.rs' ) ,
232+ location . uri . path . substr ( - 'src/main.rs' . length ) ,
233+ 'src/main.rs' ,
234234 ) ;
235235 } ) ;
236236} ) ;
You can’t perform that action at this time.
0 commit comments