diff --git a/test/sanity.test.js b/test/sanity.test.js index ea0175c48c6..8449a5c605c 100644 --- a/test/sanity.test.js +++ b/test/sanity.test.js @@ -12,15 +12,14 @@ describe('Environment sanity', function () { }); describe('snapshot', function () { - let blockNumberBefore; - it('cache and mine', async function () { - blockNumberBefore = await ethers.provider.getBlockNumber(); + const blockNumberBefore = await ethers.provider.getBlockNumber(); await mine(); expect(await ethers.provider.getBlockNumber()).to.equal(blockNumberBefore + 1); }); it('check snapshot', async function () { + const blockNumberBefore = await ethers.provider.getBlockNumber(); expect(await ethers.provider.getBlockNumber()).to.equal(blockNumberBefore); }); });