aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/test
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-11-22 03:24:47 +0800
committerGitHub <noreply@github.com>2017-11-22 03:24:47 +0800
commit415fd101d3b699304085dfdcee29ebffe0d5544b (patch)
treec81ccb5f0da0d7077e463bb4c158090f1081bb30 /packages/0x.js/test
parent037f466e1f80f635b48f3235258402e2ce75fb7b (diff)
parent0747e162fa41a281d1fdce60cad494e265d09bb0 (diff)
downloaddexon-sol-tools-415fd101d3b699304085dfdcee29ebffe0d5544b.tar
dexon-sol-tools-415fd101d3b699304085dfdcee29ebffe0d5544b.tar.gz
dexon-sol-tools-415fd101d3b699304085dfdcee29ebffe0d5544b.tar.bz2
dexon-sol-tools-415fd101d3b699304085dfdcee29ebffe0d5544b.tar.lz
dexon-sol-tools-415fd101d3b699304085dfdcee29ebffe0d5544b.tar.xz
dexon-sol-tools-415fd101d3b699304085dfdcee29ebffe0d5544b.tar.zst
dexon-sol-tools-415fd101d3b699304085dfdcee29ebffe0d5544b.zip
Merge pull request #231 from 0xProject/fix/logsPostFormatting
Add postFormatter for logs
Diffstat (limited to 'packages/0x.js/test')
-rw-r--r--packages/0x.js/test/token_wrapper_test.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/0x.js/test/token_wrapper_test.ts b/packages/0x.js/test/token_wrapper_test.ts
index b30762e8c..c32c528e6 100644
--- a/packages/0x.js/test/token_wrapper_test.ts
+++ b/packages/0x.js/test/token_wrapper_test.ts
@@ -361,6 +361,9 @@ describe('TokenWrapper', () => {
(async () => {
const callback = (err: Error, logEvent: DecodedLogEvent<TransferContractEventArgs>) => {
expect(logEvent).to.not.be.undefined();
+ expect(logEvent.logIndex).to.be.equal(0);
+ expect(logEvent.transactionIndex).to.be.equal(0);
+ expect(logEvent.blockNumber).to.be.instanceOf(Number);
const args = logEvent.args;
expect(args._from).to.be.equal(coinbase);
expect(args._to).to.be.equal(addressWithoutFunds);