Skip to content

Commit

Permalink
Add missing snapshot restorer to deposit tests (#103)
Browse files Browse the repository at this point in the history
Ref: #68 (comment)

Add missing snapshot restorer to `deposit` tests according to the
existing pattern.
  • Loading branch information
nkuba authored Dec 29, 2023
2 parents 8cd6745 + 56c21fa commit e8f316b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/test/Acre.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -924,11 +924,17 @@ describe("Acre", () => {
describe("deposit", () => {
let amountToDeposit: bigint
let minimumDepositAmount: bigint
let snapshot: SnapshotRestorer

beforeEach(async () => {
snapshot = await takeSnapshot()
minimumDepositAmount = await acre.minimumDepositAmount()
})

afterEach(async () => {
await snapshot.restore()
})

context("when the deposit amount is less than minimum", () => {
beforeEach(() => {
amountToDeposit = minimumDepositAmount - 1n
Expand Down

0 comments on commit e8f316b

Please sign in to comment.