@@ -1314,26 +1314,24 @@ TEST_F(test_linting_lsp_server, editing_config_relints_many_open_js_files) {
1314
1314
::testing::UnorderedElementsAreArray (
1315
1315
{u8" /* a.js */" , u8" /* b.js */" , u8" /* c.js */" }));
1316
1316
1317
- std::vector<std::string > linted_uris;
1317
+ std::vector<string8 > linted_uris;
1318
1318
for (const ::boost::json::object& notification :
1319
1319
this ->client ->notifications ()) {
1320
1320
EXPECT_EQ (look_up (notification, " method" ),
1321
1321
" textDocument/publishDiagnostics" );
1322
- std::string uri (
1323
- to_string_view (look_up (notification, " params" , " uri" ).get_string ()));
1324
- if (uri ==
1325
- to_string (this ->fs .file_uri_prefix_8 () + u8" quick-lint-js.config" )) {
1322
+ string8 uri (to_string8_view (
1323
+ to_string_view (look_up (notification, " params" , " uri" ).get_string ())));
1324
+ if (uri == this ->fs .file_uri_prefix_8 () + u8" quick-lint-js.config" ) {
1326
1325
// Ignore.
1327
1326
continue ;
1328
1327
}
1329
1328
linted_uris.emplace_back (uri);
1330
1329
}
1331
- EXPECT_THAT (linted_uris,
1332
- ::testing::UnorderedElementsAreArray ({
1333
- to_string (this ->fs .file_uri_prefix_8 () + u8" a.js" ),
1334
- to_string (this ->fs .file_uri_prefix_8 () + u8" b.js" ),
1335
- to_string (this ->fs .file_uri_prefix_8 () + u8" c.js" ),
1336
- }));
1330
+ EXPECT_THAT (linted_uris, ::testing::UnorderedElementsAreArray ({
1331
+ this ->fs .file_uri_prefix_8 () + u8" a.js" ,
1332
+ this ->fs .file_uri_prefix_8 () + u8" b.js" ,
1333
+ this ->fs .file_uri_prefix_8 () + u8" c.js" ,
1334
+ }));
1337
1335
}
1338
1336
1339
1337
TEST_F (test_linting_lsp_server, editing_config_relints_only_affected_js_files) {
0 commit comments