From 3c3d38238e1d994fa1e989e47eb706223cc5960a Mon Sep 17 00:00:00 2001 From: jxom <7336481+jxom@users.noreply.github.com> Date: Thu, 6 Aug 2026 16:28:00 +1000 Subject: [PATCH] test(evm): group the block-state cases by export --- src/evm/_test/BlockState.test.ts | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/evm/_test/BlockState.test.ts b/src/evm/_test/BlockState.test.ts index c3ce1d99..7c45448e 100644 --- a/src/evm/_test/BlockState.test.ts +++ b/src/evm/_test/BlockState.test.ts @@ -85,16 +85,6 @@ describe('startBlockState', () => { ) }) - test('behavior: a token cannot be taken twice', async () => { - const instance = await evm() - const block = Evm.startBlockState(instance) - - expect(Evm.takeBlockState(instance, block)).toBeDefined() - expect(() => Evm.takeBlockState(instance, block)).toThrowError( - Evm.NoBlockStateError, - ) - }) - test('behavior: entries span the block, not the last transaction', async () => { const instance = await evm() const block = Evm.startBlockState(instance) @@ -189,6 +179,18 @@ describe('warmPrecompiles', () => { expect(Evm.callTx(twice, transaction())).toEqual(expected) }) +}) + +describe('takeBlockState', () => { + test('behavior: a token cannot be taken twice', async () => { + const instance = await evm() + const block = Evm.startBlockState(instance) + + expect(Evm.takeBlockState(instance, block)).toBeDefined() + expect(() => Evm.takeBlockState(instance, block)).toThrowError( + Evm.NoBlockStateError, + ) + }) test('behavior: a token from another EVM is refused', async () => { const first = await evm()