Skip to content

Commit 24153b4

Browse files
author
LocalIdentity
committed
Fix indents
1 parent f8812b7 commit 24153b4

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

spec/System/TestTradeQueryCurrency_spec.lua

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@ describe("TradeQuery Currency Conversion", function()
3939
end)
4040
end)
4141

42-
describe("PriceBuilderProcessPoENinjaResponse", function()
43-
-- Pass: Processes without error, restoring map while adding a notice
44-
-- Fail: Corrupts map or crashes, indicating fragile API response handling, breaking future conversions
45-
it("handles unmapped currency", function()
46-
local orig_conv = mock_tradeQuery.currencyConversionTradeMap
47-
mock_tradeQuery.currencyConversionTradeMap = { div = "id" }
42+
describe("PriceBuilderProcessPoENinjaResponse", function()
43+
-- Pass: Processes without error, restoring map while adding a notice
44+
-- Fail: Corrupts map or crashes, indicating fragile API response handling, breaking future conversions
45+
it("handles unmapped currency", function()
46+
local orig_conv = mock_tradeQuery.currencyConversionTradeMap
47+
mock_tradeQuery.currencyConversionTradeMap = { div = "id" }
4848
mock_tradeQuery.controls.pbNotice = { label = ""}
49-
local resp = { exotic = 10 }
50-
mock_tradeQuery:PriceBuilderProcessPoENinjaResponse(resp)
51-
-- No crash expected
52-
assert.is_true(true)
49+
local resp = { exotic = 10 }
50+
mock_tradeQuery:PriceBuilderProcessPoENinjaResponse(resp)
51+
-- No crash expected
52+
assert.is_true(true)
5353
assert.is_true(mock_tradeQuery.controls.pbNotice.label == "No currencies received from PoE Ninja")
5454
mock_tradeQuery.currencyConversionTradeMap = orig_conv
55-
end)
56-
end)
55+
end)
56+
end)
5757

5858
describe("GetTotalPriceString", function()
5959
-- Pass: Sums and formats correctly (e.g., "5 chaos, 10 div")

0 commit comments

Comments
 (0)