@@ -91,7 +91,7 @@ size_t TodayServiceCase::_getUnreadCountsCount = 0;
9191
9292TEST_F (TodayServiceCase, QueryEverything)
9393{
94- auto ast = peg::parseString ( R"gql (
94+ auto ast = R" (
9595 query Everything {
9696 appointments {
9797 edges {
@@ -121,7 +121,7 @@ TEST_F(TodayServiceCase, QueryEverything)
121121 }
122122 }
123123 }
124- })gql" ) ;
124+ })" _graphql ;
125125 const rapidjson::Document variables (rapidjson::Type::kObjectType );
126126 const auto result = _service->resolve (*ast, " Everything" , variables.GetObject ());
127127 EXPECT_EQ (size_t (1 ), _getAppointmentsCount) << " today service lazy loads the appointments and caches the result" ;
@@ -184,7 +184,7 @@ TEST_F(TodayServiceCase, QueryEverything)
184184
185185TEST_F (TodayServiceCase, QueryAppointments)
186186{
187- auto ast = peg::parseString ( R"gql ( {
187+ auto ast = R" ( {
188188 appointments {
189189 edges {
190190 node {
@@ -195,7 +195,7 @@ TEST_F(TodayServiceCase, QueryAppointments)
195195 }
196196 }
197197 }
198- })gql" ) ;
198+ })" _graphql ;
199199 const rapidjson::Document variables (rapidjson::Type::kObjectType );
200200 const auto result = _service->resolve (*ast, " " , variables.GetObject ());
201201 EXPECT_EQ (size_t (1 ), _getAppointmentsCount) << " today service lazy loads the appointments and caches the result" ;
@@ -240,7 +240,7 @@ TEST_F(TodayServiceCase, QueryAppointments)
240240
241241TEST_F (TodayServiceCase, QueryTasks)
242242{
243- auto ast = peg::parseString ( R"gql( {
243+ auto ast = R"gql( {
244244 tasks {
245245 edges {
246246 node {
@@ -250,7 +250,7 @@ TEST_F(TodayServiceCase, QueryTasks)
250250 }
251251 }
252252 }
253- })gql" ) ;
253+ })gql" _graphql ;
254254 const rapidjson::Document variables (rapidjson::Type::kObjectType );
255255 const auto result = _service->resolve (*ast, " " , variables.GetObject ());
256256 EXPECT_GE (size_t (1 ), _getAppointmentsCount) << " today service lazy loads the appointments and caches the result" ;
@@ -294,7 +294,7 @@ TEST_F(TodayServiceCase, QueryTasks)
294294
295295TEST_F (TodayServiceCase, QueryUnreadCounts)
296296{
297- auto ast = peg::parseString ( R"gql ( {
297+ auto ast = R" ( {
298298 unreadCounts {
299299 edges {
300300 node {
@@ -304,7 +304,7 @@ TEST_F(TodayServiceCase, QueryUnreadCounts)
304304 }
305305 }
306306 }
307- })gql" ) ;
307+ })" _graphql ;
308308 const rapidjson::Document variables (rapidjson::Type::kObjectType );
309309 const auto result = _service->resolve (*ast, " " , variables.GetObject ());
310310 EXPECT_GE (size_t (1 ), _getAppointmentsCount) << " today service lazy loads the appointments and caches the result" ;
@@ -348,7 +348,7 @@ TEST_F(TodayServiceCase, QueryUnreadCounts)
348348
349349TEST_F (TodayServiceCase, MutateCompleteTask)
350350{
351- auto ast = peg::parseString ( R"gql ( mutation {
351+ auto ast = R" ( mutation {
352352 completedTask: completeTask(input: {id: "ZmFrZVRhc2tJZA==", isComplete: true, clientMutationId: "Hi There!"}) {
353353 completedTask: task {
354354 completedTaskId: id
@@ -357,7 +357,7 @@ TEST_F(TodayServiceCase, MutateCompleteTask)
357357 }
358358 clientMutationId
359359 }
360- })gql" ) ;
360+ })" _graphql ;
361361 const rapidjson::Document variables (rapidjson::Type::kObjectType );
362362 const auto result = _service->resolve (*ast, " " , variables.GetObject ());
363363
@@ -401,7 +401,7 @@ TEST_F(TodayServiceCase, MutateCompleteTask)
401401
402402TEST_F (TodayServiceCase, Introspection)
403403{
404- auto ast = peg::parseString ( R"gql ( {
404+ auto ast = R" ( {
405405 __schema {
406406 types {
407407 kind
@@ -432,7 +432,7 @@ TEST_F(TodayServiceCase, Introspection)
432432 name
433433 }
434434 }
435- })gql" ) ;
435+ })" _graphql ;
436436 const rapidjson::Document variables (rapidjson::Type::kObjectType );
437437 const auto result = _service->resolve (*ast, " " , variables.GetObject ());
438438
0 commit comments