Skip to content

Commit

Permalink
fix: change more tests to ensure ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
jacek-prisma committed Jan 7, 2025
1 parent 555214f commit 655db85
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,13 @@ mod ext_rel_filters {
test_data(&runner).await?;

insta::assert_snapshot!(
run_query!(&runner, r#"{ findManyArtist(where: { Albums: { every: { Title: { contains: "Album" }}}}) { Name }}"#),
@r###"{"data":{"findManyArtist":[{"Name":"CompleteArtist"},{"Name":"ArtistWithoutAlbums"},{"Name":"ArtistWithOneAlbumWithoutTracks"},{"Name":"CompleteArtist2"},{"Name":"CompleteArtistWith2Albums"}]}}"###
run_query!(&runner, r#"{
findManyArtist(
where: { Albums: { every: { Title: { contains: "Album" }}}}
orderBy: { Name: asc }
) { Name }
}"#),
@r###"{"data":{"findManyArtist":[{"Name":"ArtistWithOneAlbumWithoutTracks"},{"Name":"ArtistWithoutAlbums"},{"Name":"CompleteArtist"},{"Name":"CompleteArtist2"},{"Name":"CompleteArtistWith2Albums"}]}}"###
);

insta::assert_snapshot!(
Expand Down

0 comments on commit 655db85

Please sign in to comment.