Skip to content

Commit f79e6be

Browse files
committed
Fix curse querymod.lua test
1 parent 111af37 commit f79e6be

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/System/TestTradeQueryGenerator_spec.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ describe("TradeQueryGenerator", function()
55
-- Pass: Mod line maps correctly to trade stat entry without error
66
-- Fail: Mapping fails (e.g., no match found), indicating incomplete stat parsing for curse mods, potentially missing curse-enabling items in queries
77
it("handles special curse case", function()
8-
local mod = { "You can apply an additional Curse" }
9-
local tradeStatsParsed = { result = { [2] = { entries = { { text = "You can apply # additional Curses", id = "id" } } } } }
8+
local mod = { tradeHashes = {[30642521] = {"You can apply an additional Curse"}} }
9+
local tradeStatsParsed = { result = { [2] = { entries = { { text = "You can apply # additional Curses", id = "explicit.stat_30642521" } } } } }
1010
mock_queryGen.modData = { Explicit = true }
1111
mock_queryGen:ProcessMod(mod, tradeStatsParsed, 1)
1212
-- Simplified assertion; in full impl, check modData

0 commit comments

Comments
 (0)