Skip to content

Commit

Permalink
uncomment variable test - it still needs to be fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
hallettj committed Sep 25, 2024
1 parent 5720cbb commit 94720dd
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions crates/integration-tests/src/tests/filtering.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,22 @@ async fn filters_by_comparisons_on_elements_of_array_of_scalars() -> anyhow::Res
Ok(())
}

// #[tokio::test]
// async fn filters_by_comparisons_on_elements_of_array_of_scalars_against_variable(
// ) -> anyhow::Result<()> {
// assert_yaml_snapshot!(
// run_connector_query(
// Connector::SampleMflix,
// query_request()
// .variables([[("cast_member", "Albert Austin")]])
// .collection("movies")
// .query(
// query()
// .predicate(binop("_eq", target!("cast"), variable!(cast_member)))
// .fields([field!("title"), field!("cast")]),
// )
// )
// .await?
// );
// Ok(())
// }
#[tokio::test]
async fn filters_by_comparisons_on_elements_of_array_of_scalars_against_variable(
) -> anyhow::Result<()> {
assert_yaml_snapshot!(
run_connector_query(
Connector::SampleMflix,
query_request()
.variables([[("cast_member", "Albert Austin")]])
.collection("movies")
.query(
query()
.predicate(binop("_eq", target!("cast"), variable!(cast_member)))
.fields([field!("title"), field!("cast")]),
)
)
.await?
);
Ok(())
}

0 comments on commit 94720dd

Please sign in to comment.