aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/code/src/test/utils/diagnotics/rust.test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/editors/code/src/test/utils/diagnotics/rust.test.ts b/editors/code/src/test/utils/diagnotics/rust.test.ts
index 9acd319b3..358325cc8 100644
--- a/editors/code/src/test/utils/diagnotics/rust.test.ts
+++ b/editors/code/src/test/utils/diagnotics/rust.test.ts
@@ -212,7 +212,7 @@ describe('mapRustDiagnosticToVsCode', () => {
212 assert.strictEqual( 212 assert.strictEqual(
213 diagnostic.message, 213 diagnostic.message,
214 [ 214 [
215 'can\'t compare `{integer}` with `&str`', 215 "can't compare `{integer}` with `&str`",
216 'the trait `std::cmp::PartialEq<&str>` is not implemented for `{integer}`', 216 'the trait `std::cmp::PartialEq<&str>` is not implemented for `{integer}`',
217 ].join('\n'), 217 ].join('\n'),
218 ); 218 );
@@ -229,8 +229,8 @@ describe('mapRustDiagnosticToVsCode', () => {
229 // The file url should be normal file 229 // The file url should be normal file
230 // Ignore the first part because it depends on vs workspace location 230 // Ignore the first part because it depends on vs workspace location
231 assert.strictEqual( 231 assert.strictEqual(
232 true, 232 location.uri.path.substr(-'src/main.rs'.length),
233 location.uri.toString().endsWith('src/main.rs'), 233 'src/main.rs',
234 ); 234 );
235 }); 235 });
236}); 236});