Skip to content

Commit 42392bd

Browse files
authored
Fix
1 parent 37ba658 commit 42392bd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Tests/StructuredQueriesTests/NestedStructJSONTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ extension SnapshotTests {
4545
Photo.select { $0.jsonObject() }
4646
) {
4747
"""
48-
SELECT json_object('id', json_quote("photos"."id"), 'width', json_quote("photos"."width"), 'height', json_quote("photos"."height"))
48+
SELECT json_object('id', json_quote("photos"."id"), json_object('dimensions', 'width', json_quote("photos"."width"), 'height', json_quote("photos"."height")))
4949
FROM "photos"
5050
"""
5151
} results: {
@@ -71,7 +71,7 @@ extension SnapshotTests {
7171
Photo.select { $0.jsonGroupArray() }
7272
) {
7373
"""
74-
SELECT json_group_array(json_object('id', json_quote("photos"."id"), 'width', json_quote("photos"."width"), 'height', json_quote("photos"."height")))
74+
SELECT json_group_array(json_object('id', json_quote("photos"."id"), json_object('dimensions', 'width', json_quote("photos"."width"), 'height', json_quote("photos"."height"))))
7575
FROM "photos"
7676
"""
7777
} results: {

0 commit comments

Comments
 (0)