diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-15 03:53:40 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-02-15 03:53:40 +0800 |
commit | 599adaf1bf2bee561530b932610f80cd1a9111ee (patch) | |
tree | 070b6220925d9977e15333d91b3fa90cae690c1a | |
parent | 778e399438c52c80626bc3fc9c76d2688b4296e4 (diff) | |
download | dexon-sol-tools-599adaf1bf2bee561530b932610f80cd1a9111ee.tar.gz dexon-sol-tools-599adaf1bf2bee561530b932610f80cd1a9111ee.tar.zst dexon-sol-tools-599adaf1bf2bee561530b932610f80cd1a9111ee.zip |
Add an assertion
-rw-r--r-- | packages/dev-utils/test/blockchain_lifecycle_test.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/dev-utils/test/blockchain_lifecycle_test.ts b/packages/dev-utils/test/blockchain_lifecycle_test.ts index 14712faa0..4fdc53c87 100644 --- a/packages/dev-utils/test/blockchain_lifecycle_test.ts +++ b/packages/dev-utils/test/blockchain_lifecycle_test.ts @@ -17,9 +17,11 @@ describe('BlockchainLifecycle tests', () => { const blockNumberBefore = await web3Wrapper.getBlockNumberAsync(); await blockchainLifecycle.startAsync(); await rpc.mineBlockAsync(); - await blockchainLifecycle.revertAsync(); const blockNumberAfter = await web3Wrapper.getBlockNumberAsync(); - expect(blockNumberAfter).to.be.equal(blockNumberBefore); + expect(blockNumberAfter).to.be.equal(blockNumberBefore + 1); + await blockchainLifecycle.revertAsync(); + const blockNumberAfterRevert = await web3Wrapper.getBlockNumberAsync(); + expect(blockNumberAfterRevert).to.be.equal(blockNumberBefore); }); }); }); |