Skip to content

Commit 384714a

Browse files
committed
wip
1 parent d6d28da commit 384714a

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

Tests/StructuredQueriesTests/EnumTableTests.swift

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -447,14 +447,10 @@
447447
assertQuery(
448448
Attachment
449449
.where { $0.kind.note.isNot(nil) }
450-
.select { attachment in
450+
.select {
451451
Attachment.Columns(
452-
id: attachment.id,
453-
kind: Attachment.Kind.Columns(
454-
allColumns: attachment.kind.link._allColumns
455-
+ String?(queryOutput: nil)._allColumns
456-
+ attachment.kind.note.jsonGroupArray()._allColumns
457-
)
452+
id: $0.id,
453+
kind: Attachment.Kind.note($0.kind.note.jsonGroupArray())
458454
)
459455
}
460456
) {
@@ -483,14 +479,10 @@
483479
assertQuery(
484480
Attachment
485481
.where { $0.kind.notes.isNot(nil) }
486-
.select { attachment in
482+
.select {
487483
Attachment.Columns(
488484
id: attachment.id,
489-
kind: Attachment.Kind.Columns(
490-
allColumns: attachment.kind.link._allColumns
491-
+ attachment.kind.note._allColumns
492-
+ attachment.kind.notes._allColumns
493-
)
485+
kind: Attachment.Kind.Columns.notes($0.kind.notes)
494486
)
495487
}
496488
) {
@@ -519,14 +511,10 @@
519511
assertQuery(
520512
Attachment
521513
.where { $0.kind.notes.isNot(nil) }
522-
.select { attachment in
514+
.select {
523515
Attachment.Columns(
524-
id: attachment.id,
525-
kind: Attachment.Kind.Columns(
526-
allColumns: attachment.kind.link._allColumns
527-
+ attachment.kind.note._allColumns
528-
+ attachment.kind.notes.list._allColumns
529-
)
516+
id: $0.id,
517+
kind: Attachment.Kind.list($0.kind.notes.list)
530518
)
531519
}
532520
) {

0 commit comments

Comments
 (0)