Skip to content

Commit

Permalink
chore: adjust test assertions for "ForeignKeyViolation"
Browse files Browse the repository at this point in the history
  • Loading branch information
jkomyno committed Sep 23, 2024
1 parent 59f486b commit 7034e0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ mod one2one_req {
runner,
"mutation { deleteOneParent(where: { id: 1 }) { id }}",
2003,
"Foreign key constraint failed"
"Foreign key constraint violated"
);

Ok(())
Expand Down Expand Up @@ -293,7 +293,7 @@ mod one2many_req {
runner,
"mutation { deleteOneParent(where: { id: 1 }) { id }}",
2003,
"Foreign key constraint failed"
"Foreign key constraint violated"
);

Ok(())
Expand Down Expand Up @@ -397,7 +397,7 @@ mod one2many_opt {
runner,
"mutation { deleteOneParent(where: { id: 1 }) { id }}",
2003,
"Foreign key constraint failed"
"Foreign key constraint violated"
);

Ok(())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ mod one2one_req {
&runner,
r#"mutation { updateOneParent(where: { id: 1 }, data: { uniq: "u1" }) { id }}"#,
2003,
"Foreign key constraint failed"
"Foreign key constraint violated"
);

Ok(())
Expand Down Expand Up @@ -182,7 +182,7 @@ mod one2one_opt {
&runner,
r#"mutation { updateOneParent(where: { id: 1 } data: { uniq: "u1" }) { id }}"#,
2003,
"Foreign key constraint failed"
"Foreign key constraint violated"
);

Ok(())
Expand Down Expand Up @@ -287,7 +287,7 @@ mod one2many_req {
&runner,
r#"mutation { updateOneParent(where: { id: 1 }, data: { uniq: "u1" }) { id }}"#,
2003,
"Foreign key constraint failed"
"Foreign key constraint violated"
);

Ok(())
Expand Down Expand Up @@ -390,7 +390,7 @@ mod one2many_opt {
&runner,
r#"mutation { updateOneParent(where: { id: 1 }, data: { uniq: "u1" }) { id }}"#,
2003,
"Foreign key constraint failed"
"Foreign key constraint violated"
);

Ok(())
Expand Down

0 comments on commit 7034e0a

Please sign in to comment.