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', () => {
212
212
assert . strictEqual (
213
213
diagnostic . message ,
214
214
[
215
- ' can\ 't compare `{integer}` with `&str`' ,
215
+ " can't compare `{integer}` with `&str`" ,
216
216
'the trait `std::cmp::PartialEq<&str>` is not implemented for `{integer}`' ,
217
217
] . join ( '\n' ) ,
218
218
) ;
@@ -229,8 +229,8 @@ describe('mapRustDiagnosticToVsCode', () => {
229
229
// The file url should be normal file
230
230
// Ignore the first part because it depends on vs workspace location
231
231
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' ,
234
234
) ;
235
235
} ) ;
236
236
} ) ;
You can’t perform that action at this time.
0 commit comments