Skip to content

Commit f6c73e6

Browse files
authored
Only include actions in TestStore debug output (#342)
1 parent 81e61f8 commit f6c73e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/ComposableArchitecture/TestSupport/TestStore.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@
295295
Must handle \(receivedActions.count) received \
296296
action\(receivedActions.count == 1 ? "" : "s") before sending an action: …
297297
298-
Unhandled actions: \(debugOutput(receivedActions))
298+
Unhandled actions: \(debugOutput(receivedActions.map { $0.action }))
299299
""",
300300
file: step.file, line: step.line
301301
)
@@ -355,7 +355,7 @@
355355
Must handle \(receivedActions.count) received \
356356
action\(receivedActions.count == 1 ? "" : "s") before performing this work: …
357357
358-
Unhandled actions: \(debugOutput(receivedActions))
358+
Unhandled actions: \(debugOutput(receivedActions.map { $0.action }))
359359
""",
360360
file: step.file, line: step.line
361361
)
@@ -373,7 +373,7 @@
373373
Must handle \(receivedActions.count) received \
374374
action\(receivedActions.count == 1 ? "" : "s") before performing this work: …
375375
376-
Unhandled actions: \(debugOutput(receivedActions))
376+
Unhandled actions: \(debugOutput(receivedActions.map { $0.action }))
377377
""",
378378
file: step.file, line: step.line
379379
)
@@ -392,7 +392,7 @@
392392
Received \(receivedActions.count) unexpected \
393393
action\(receivedActions.count == 1 ? "" : "s"): …
394394
395-
Unhandled actions: \(debugOutput(receivedActions))
395+
Unhandled actions: \(debugOutput(receivedActions.map { $0.action }))
396396
""",
397397
file: file, line: line
398398
)

0 commit comments

Comments
 (0)