summaryrefslogtreecommitdiff
path: root/Tests/Game/test_Game.gd
diff options
context:
space:
mode:
authorSophia Pearson <codergal89@gmail.com>2022-10-03 22:22:50 +0200
committerSophia Pearson <codergal89@gmail.com>2022-10-04 22:18:18 +0200
commite127ad39e742396030352240d829bc903b1d4464 (patch)
tree10cc21d70bf13181aef7c8ad0344077ff63579a3 /Tests/Game/test_Game.gd
parentddbb045f6387a8ba23b1210b27a745516a387a52 (diff)
downloadtexty-e127ad39e742396030352240d829bc903b1d4464.tar.xz
texty-e127ad39e742396030352240d829bc903b1d4464.zip
godot: inital Godot 4 migration
Diffstat (limited to 'Tests/Game/test_Game.gd')
-rw-r--r--Tests/Game/test_Game.gd6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/Game/test_Game.gd b/Tests/Game/test_Game.gd
index 427d28c..d619b21 100644
--- a/Tests/Game/test_Game.gd
+++ b/Tests/Game/test_Game.gd
@@ -16,7 +16,7 @@ func _get_input_area() -> InputArea:
return _instance.get_node('%InputArea') as InputArea
func before_each():
- _instance = add_child_autofree(Scene.instance())
+ _instance = add_child_autofree(Scene.instantiate())
func after_each():
_sender.release_all()
@@ -35,7 +35,7 @@ func test_has_OutputArea():
assert_not_null(_get_output_area())
func test_OutputArea_is_empty_after_instantiation():
- assert_true(_get_output_area().TextBlocks.empty())
+ assert_true(_get_output_area().TextBlocks.is_empty())
func test_has_InputArea():
assert_not_null(_get_input_area())
@@ -47,4 +47,4 @@ func test_after_submitting_some_text_via_InputArea_OutputArea_is_not_empty():
var textInput = _get_input_area().get_node('%TextInput')
textInput.text = 'this is a test'
UiHelpers.press_key(_sender, KEY_ENTER)
- assert_false(_get_output_area().TextBlocks.empty())
+ assert_false(_get_output_area().TextBlocks.is_empty())