diff --git a/README.md b/README.md index 08d707a..418a947 100644 --- a/README.md +++ b/README.md @@ -57,4 +57,16 @@ yarn add tslib * [harmony-sdk-examples](https://github.com/FireStack-Lab/harmony-sdk-examples) +# E2E tests + +**Contantly updating now, please get back later** + +1. edit `.env` file if you have custom setting +2. run harmony node locally(this fork currently : https://github.com/mikedoan/harmony/tree/enable_tx) +3. wait for 1-2 mins, and run this: + +```bash +yarn test:e2e +``` + diff --git a/e2e/src/blockchain.e2e.ts b/e2e/src/blockchain.e2e.ts index a4747d4..a9373ae 100644 --- a/e2e/src/blockchain.e2e.ts +++ b/e2e/src/blockchain.e2e.ts @@ -44,6 +44,7 @@ describe('e2e test blockchain', () => { expect(checkBlockData(res3.result)).toEqual(true); expect(typeof res3.result.timestamp).toEqual('number'); }); + it('should test hmy_getBlockByHash', async () => { const latestBlock = await bc.getBlockByNumber({ blockNumber: 'latest' }); const res = await bc.getBlockByHash({ blockHash: latestBlock.result.hash });