From 70bb3c24f8218ed2188d995c9133939962ce00d6 Mon Sep 17 00:00:00 2001 From: tyranron Date: Wed, 13 Sep 2023 17:35:32 +0300 Subject: [PATCH] Fix tests --- juniper_actix/src/lib.rs | 6 ++---- juniper_warp/src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/juniper_actix/src/lib.rs b/juniper_actix/src/lib.rs index 7a2e5b4be..c18eeee1b 100644 --- a/juniper_actix/src/lib.rs +++ b/juniper_actix/src/lib.rs @@ -515,10 +515,8 @@ mod tests { "text/html; charset=utf-8" ); let body = take_response_body_string(resp).await; - assert!(body.contains("")); - assert!(body.contains( - "" - )) + assert!(body.contains("var GRAPHQL_URL = '/dogs-api/graphql';")); + assert!(body.contains("var GRAPHQL_SUBSCRIPTIONS_URL = '/dogs-api/subscriptions';")) } #[actix_web::rt::test] diff --git a/juniper_warp/src/lib.rs b/juniper_warp/src/lib.rs index 88ee8cb0f..d6ccc2c67 100644 --- a/juniper_warp/src/lib.rs +++ b/juniper_warp/src/lib.rs @@ -556,7 +556,7 @@ mod tests { ); let body = String::from_utf8(response.body().to_vec()).unwrap(); - assert!(body.contains("")); + assert!(body.contains("var GRAPHQL_URL = '/dogs-api/graphql';")); } #[tokio::test]