@@ -1314,26 +1314,24 @@ TEST_F(test_linting_lsp_server, editing_config_relints_many_open_js_files) {
13141314 ::testing::UnorderedElementsAreArray (
13151315 {u8" /* a.js */" , u8" /* b.js */" , u8" /* c.js */" }));
13161316
1317- std::vector<std::string > linted_uris;
1317+ std::vector<string8 > linted_uris;
13181318 for (const ::boost::json::object& notification :
13191319 this ->client ->notifications ()) {
13201320 EXPECT_EQ (look_up (notification, " method" ),
13211321 " 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" ) {
13261325 // Ignore.
13271326 continue ;
13281327 }
13291328 linted_uris.emplace_back (uri);
13301329 }
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+ }));
13371335}
13381336
13391337TEST_F (test_linting_lsp_server, editing_config_relints_only_affected_js_files) {
0 commit comments