diff options
| author | Sophia Pearson <codergal89@gmail.com> | 2022-10-03 22:22:50 +0200 |
|---|---|---|
| committer | Sophia Pearson <codergal89@gmail.com> | 2022-10-04 22:18:18 +0200 |
| commit | e127ad39e742396030352240d829bc903b1d4464 (patch) | |
| tree | 10cc21d70bf13181aef7c8ad0344077ff63579a3 /Tests/Game/test_CommandInputArea.gd | |
| parent | ddbb045f6387a8ba23b1210b27a745516a387a52 (diff) | |
| download | texty-e127ad39e742396030352240d829bc903b1d4464.tar.xz texty-e127ad39e742396030352240d829bc903b1d4464.zip | |
godot: inital Godot 4 migration
Diffstat (limited to 'Tests/Game/test_CommandInputArea.gd')
| -rw-r--r-- | Tests/Game/test_CommandInputArea.gd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/Game/test_CommandInputArea.gd b/Tests/Game/test_CommandInputArea.gd index c233ec4..9d67927 100644 --- a/Tests/Game/test_CommandInputArea.gd +++ b/Tests/Game/test_CommandInputArea.gd @@ -20,7 +20,7 @@ func _set_input_text(text): textInputNode.emit_signal('text_changed', textInputNode.text) func before_each(): - _instance = add_child_autofree(Scene.instance()) + _instance = add_child_autofree(Scene.instantiate()) func after_each(): _sender.release_all() @@ -81,9 +81,9 @@ func test_UnknownInputSubmitted_signal_is_emitted_when_enter_is_pressed_with_a_v func test_TextInput_is_empty_after_submitting_a_valid_command(): _set_input_text(_valid_input) UiHelpers.press_key(_sender, KEY_ENTER) - assert_true(_get_input_node().text.empty()) + assert_true(_get_input_node().text.is_empty()) func test_TextInput_is_empty_after_submitting_an_invalid_command(): _set_input_text(_invalid_input) UiHelpers.press_key(_sender, KEY_ENTER) - assert_true(_get_input_node().text.empty()) + assert_true(_get_input_node().text.is_empty()) |
