test(@projects/@magic-civilization): 🐛 pass typed Array[Dictionary] to EndGameSummary.setup

setup(winner, reason, awards: Array[Dictionary]) rejected the untyped [] literal
("does not have the same element type as expected typed array"). Pass a typed
empty array.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Natalie 2026-06-24 04:11:59 -04:00
parent 3652d0fcda
commit dd03be5ff8

View file

@ -51,7 +51,9 @@ func before_each() -> void:
add_child_autofree(_egs)
await get_tree().process_frame
## Bring it into the populated/visible state the footer handlers expect.
_egs.setup(0, "LastSurvivor", [])
## setup() binds awards as Array[Dictionary]; an untyped [] is rejected.
var no_awards: Array[Dictionary] = []
_egs.setup(0, "LastSurvivor", no_awards)
await get_tree().process_frame