diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2018-05-25 01:24:32 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2018-05-31 08:11:31 +0800 |
commit | 9f93d8f53380bf650702c653fea13b3e7ed5f8f7 (patch) | |
tree | 5562e78903d0d6cb41ad33afa63f154566f639f5 /packages/contracts/test/exchange/libs.ts | |
parent | 6050a59e4a190cf8f8d42e390b435a7184b8f718 (diff) | |
download | dexon-sol-tools-9f93d8f53380bf650702c653fea13b3e7ed5f8f7.tar dexon-sol-tools-9f93d8f53380bf650702c653fea13b3e7ed5f8f7.tar.gz dexon-sol-tools-9f93d8f53380bf650702c653fea13b3e7ed5f8f7.tar.bz2 dexon-sol-tools-9f93d8f53380bf650702c653fea13b3e7ed5f8f7.tar.lz dexon-sol-tools-9f93d8f53380bf650702c653fea13b3e7ed5f8f7.tar.xz dexon-sol-tools-9f93d8f53380bf650702c653fea13b3e7ed5f8f7.tar.zst dexon-sol-tools-9f93d8f53380bf650702c653fea13b3e7ed5f8f7.zip |
Fix formatting and tests
Diffstat (limited to 'packages/contracts/test/exchange/libs.ts')
-rw-r--r-- | packages/contracts/test/exchange/libs.ts | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/packages/contracts/test/exchange/libs.ts b/packages/contracts/test/exchange/libs.ts index bbca54274..c6c07f633 100644 --- a/packages/contracts/test/exchange/libs.ts +++ b/packages/contracts/test/exchange/libs.ts @@ -25,12 +25,6 @@ describe('Exchange libs', () => { let libs: TestLibsContract; before(async () => { - await blockchainLifecycle.startAsync(); - }); - after(async () => { - await blockchainLifecycle.revertAsync(); - }); - before(async () => { const accounts = await web3Wrapper.getAvailableAddressesAsync(); const makerAddress = accounts[0]; libs = await TestLibsContract.deployFrom0xArtifactAsync(artifacts.TestLibs, provider, txDefaults); @@ -49,7 +43,6 @@ describe('Exchange libs', () => { beforeEach(async () => { await blockchainLifecycle.startAsync(); - signedOrder = orderFactory.newSignedOrder(); }); afterEach(async () => { await blockchainLifecycle.revertAsync(); @@ -69,7 +62,8 @@ describe('Exchange libs', () => { }); }); describe('getOrderHash', () => { - it('should output the correct order hash', async () => { + it('should output the correct orderHash', async () => { + signedOrder = orderFactory.newSignedOrder(); const orderHashHex = await libs.publicGetOrderHash.callAsync(signedOrder); expect(orderUtils.getOrderHashHex(signedOrder)).to.be.equal(orderHashHex); }); |