Removed pointless query.
This commit is contained in:
parent
adb4740a10
commit
f1dbe6daf0
18
src/lib.rs
18
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<Table> {
|
||||
ctx.data::<RwLock<Vec<Table>>>()
|
||||
.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();
|
||||
|
Loading…
Reference in New Issue
Block a user