From f1dbe6daf0d00ffe5b59840bd8dd931797545257 Mon Sep 17 00:00:00 2001 From: Jeff Baskin Date: Fri, 1 Jul 2022 12:35:00 -0400 Subject: [PATCH] Removed pointless query. --- src/lib.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 05bdf7e..e57f121 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -24,10 +24,6 @@ struct Query; #[Object] impl Query { - async fn pointless(&self) -> String { - "this is pointless.".to_string() - } - async fn tables(&self, ctx: &Context<'_>) -> Vec { ctx.data::>>() .unwrap() @@ -89,20 +85,6 @@ mod support { mod queries { use super::*; - #[async_std::test] - async fn working() { - let db = Database::new(); - let output = db.execute("{pointless}").await; - let expected = r#"{"data":{"pointless":"this is pointless."}}"#; - support::compare(&db, &output, &expected); - assert!( - output == expected, - "Got '{}' instead of '{}'.", - output, - expected - ) - } - #[async_std::test] async fn list_tables() { let db = Database::new();