From 2a880adb6868dd367c8f10c72123753c7f3c0f95 Mon Sep 17 00:00:00 2001 From: Emik Date: Sun, 19 Jul 2026 22:30:22 +0200 Subject: [PATCH] Fix unit test --- manifest.json | 2 +- refs/game_objects | 1 - refs/src | 1 + src/lib/intellisense.lua | 9 +++++++-- src/tests/blind.tests.lua | 3 +-- 5 files changed, 10 insertions(+), 6 deletions(-) delete mode 120000 refs/game_objects create mode 120000 refs/src diff --git a/manifest.json b/manifest.json index e38f903..09b4987 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@ "id": "Roland", "name": "Roland", "prefix": "Roland", - "version": "2.9.66", + "version": "2.9.67", "badge_colour": "8BE9FD", "display_name": "Roland", "main_file": "src/main.lua", diff --git a/refs/game_objects b/refs/game_objects deleted file mode 120000 index 18a701e..0000000 --- a/refs/game_objects +++ /dev/null @@ -1 +0,0 @@ -../../smods/src/game_objects \ No newline at end of file diff --git a/refs/src b/refs/src new file mode 120000 index 0000000..570d228 --- /dev/null +++ b/refs/src @@ -0,0 +1 @@ +../../smods/src \ No newline at end of file diff --git a/src/lib/intellisense.lua b/src/lib/intellisense.lua index c1c5e4c..281e1d2 100644 --- a/src/lib/intellisense.lua +++ b/src/lib/intellisense.lua @@ -40,11 +40,16 @@ G.Bakery_charm_area.cards[1].ability.extra = G.Bakery_charm_area.cards[1].abilit ---@type Card[] G.playing_cards = G.playing_cards -SMODS.Mods.Roland.config = require "config" - ---@type userdata|{getWidth: fun(self: self): number} SMODS.Atlas.image_data = SMODS.Atlas.image_data +---@return Card +function copy_card(...) + error(...) +end + +SMODS.Mods.Roland.config = require "config" + --- @type table Talisman = Talisman diff --git a/src/tests/blind.tests.lua b/src/tests/blind.tests.lua index 4663ce3..ab137a9 100644 --- a/src/tests/blind.tests.lua +++ b/src/tests/blind.tests.lua @@ -68,8 +68,7 @@ Balatest.TestPlay { } end) - Balatest.wait_for_input() - Balatest.wait() + Balatest.wait_for_input(G.STATES.ROUND_EVAL) end, assert = function() Balatest.assert_chips(2720)