Skip to content

Commit

Permalink
fix: tests after occ and ref integrity changes (#3213)
Browse files Browse the repository at this point in the history
  • Loading branch information
Weakky committed Sep 21, 2022
1 parent fcf3572 commit 9887882
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -334,11 +334,11 @@ mod one2many_req {

// Linking field updated but no child connected: works
insta::assert_snapshot!(
run_query!(&runner, r#"mutation { updateManyParent(where: { id: 2 }, data: { uniq: "u2" }) { count }}"#),
run_query!(&runner, r#"mutation { updateManyParent(where: { id: 2 }, data: { uniq: "u22" }) { count }}"#),
@r###"{"data":{"updateManyParent":{"count":1}}}"###
);

// Child connected but no linking field updated: works
// No child connected and no linking field updated: works
insta::assert_snapshot!(
run_query!(&runner, r#"mutation { updateManyParent(where: { id: 2 }, data: { name: "Alice2" }) { count }}"#),
@r###"{"data":{"updateManyParent":{"count":1}}}"###
Expand Down Expand Up @@ -476,11 +476,11 @@ mod one2many_opt {

// Linking field updated but no child connected: works
insta::assert_snapshot!(
run_query!(&runner, r#"mutation { updateManyParent(where: { id: 2 }, data: { uniq: "u2" }) { count }}"#),
run_query!(&runner, r#"mutation { updateManyParent(where: { id: 2 }, data: { uniq: "u22" }) { count }}"#),
@r###"{"data":{"updateManyParent":{"count":1}}}"###
);

// Child connected but no linking field updated: works
// No connected and no linking field updated: works
insta::assert_snapshot!(
run_query!(&runner, r#"mutation { updateManyParent(where: { id: 2 }, data: { name: "Alice2" }) { count }}"#),
@r###"{"data":{"updateManyParent":{"count":1}}}"###
Expand Down

0 comments on commit 9887882

Please sign in to comment.