Skip to content

Commit

Permalink
fix(tests): update test to consume stringified state in initialize state
Browse files Browse the repository at this point in the history
  • Loading branch information
Atticus committed Jun 13, 2024
1 parent c52447d commit a763cd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ant/spec/ant_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local balances = require("src.balances")
local controllers = require("src.controllers")
local initialize = require("src.initialize")
local records = require("src.records")
local json = require("src.json")

local fake_address = "1111111111111111111111111111111111111111111"

Expand Down Expand Up @@ -45,7 +46,7 @@ describe("Arweave Name Token", function()
teardown(function() end)

it("Initializes the state of the process", function()
initialize.initializeANTState(originalState) -- happy
initialize.initializeANTState(json.encode(originalState)) -- happy

assert.are.same(_G.Balances, originalState.balances)
assert.are.same(_G.Records, originalState.records)
Expand Down

0 comments on commit a763cd2

Please sign in to comment.