Skip to content

Commit 13a714d

Browse files
committed
Use graphql's value macro instead of local rewrite
1 parent dd725e6 commit 13a714d

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

src/graphql/mod.rs

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,9 @@ mod tests {
624624
use std::error::Error;
625625
use std::fs;
626626

627-
use async_graphql::{EmptySubscription, InputType as _, Request, Schema, SchemaBuilder, Value};
627+
use async_graphql::{
628+
value, EmptySubscription, InputType as _, Request, Schema, SchemaBuilder, Value,
629+
};
628630
use axum::http::HeaderValue;
629631
use axum_extra::headers::authorization::{Bearer, Credentials};
630632
use axum_extra::headers::Authorization;
@@ -673,13 +675,6 @@ mod tests {
673675
}
674676
}
675677

676-
/// Helper for creating graphql values from literals
677-
macro_rules! value {
678-
($tree:tt) => {
679-
Value::from_json(json!($tree)).unwrap()
680-
};
681-
}
682-
683678
#[fixture]
684679
async fn db() -> SqliteScanPathService {
685680
let db = SqliteScanPathService::memory().await;

0 commit comments

Comments
 (0)