Files
code_of_conquest_dnd/client/tests/unit/test_theme_showcase.gd
2026-07-10 20:39:09 -05:00

12 lines
440 B
GDScript

# client/tests/unit/test_theme_showcase.gd
extends "res://addons/gut/test.gd"
func test_showcase_instances_without_error():
var packed = load("res://scenes/theme/theme_showcase.tscn")
assert_true(packed is PackedScene)
var node = packed.instantiate()
add_child_autofree(node) # runs _ready(); any engine error here fails the suite
assert_true(node is Control)
assert_true(node.theme is Theme, "showcase did not apply game_theme")