Skip to content

Commit f101d79

Browse files
committed
fix tests to correctly use the table input for configuration
1 parent 0dbbe31 commit f101d79

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/encode_security_spec.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,13 @@ describe("encode() security and edge cases", function()
189189

190190
-- Should succeed with high limit
191191
local success1 = pcall(function()
192-
simdjson.encode(deep, 100)
192+
simdjson.encode(deep, { maxDepth = 100 })
193193
end)
194194
assert.is_true(success1)
195195

196196
-- Should fail with low limit
197197
local success2 = pcall(function()
198-
simdjson.encode(deep, 10)
198+
simdjson.encode(deep, { maxDepth = 10 })
199199
end)
200200
assert.is_false(success2)
201201
end)

0 commit comments

Comments
 (0)