Skip to content

Commit

Permalink
fix: use correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Apr 2, 2024
1 parent 33dca3f commit 4466ccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/torii/graphql/src/tests/entities_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ mod tests {

use crate::schema::build_schema;
use crate::tests::{
run_graphql_query, spinup_types_test, Connection, Entity, Record, Subrecord,
run_graphql_query, spinup_types_test, Connection, Entity, Record, RecordSibling, Subrecord
};

async fn entities_query(schema: &Schema, arg: &str) -> Value {
Expand Down Expand Up @@ -235,7 +235,7 @@ mod tests {
assert_eq!(&record.__typename, "Record");
assert_eq!(record.record_id, 0);

let record_sibling: Record = serde_json::from_value(models[1].clone()).unwrap();
let record_sibling: RecordSibling = serde_json::from_value(models[1].clone()).unwrap();
assert_eq!(&record_sibling.__typename, "RecordSibling");
assert_eq!(record_sibling.record_id, 0);

Expand Down

0 comments on commit 4466ccb

Please sign in to comment.