From 56c21fad60df7c26ccf353661c48ebc590760653 Mon Sep 17 00:00:00 2001 From: Rafal Czajkowski Date: Fri, 29 Dec 2023 14:18:44 +0100 Subject: [PATCH] Add missing snapshot restorer to `deposit` tests According to the existing pattern. --- core/test/Acre.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/test/Acre.test.ts b/core/test/Acre.test.ts index 776dea47a..4a5b97620 100644 --- a/core/test/Acre.test.ts +++ b/core/test/Acre.test.ts @@ -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