aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pipeline/test/parsers/events
diff options
context:
space:
mode:
authorAlex Browne <stephenalexbrowne@gmail.com>2018-11-17 04:55:54 +0800
committerAlex Browne <stephenalexbrowne@gmail.com>2018-12-05 06:24:48 +0800
commit24fd2d9730d58a58929f401674175ad8a5a7fbc1 (patch)
tree17994e0f4171a796294bfa69dd126ccffef7fa90 /packages/pipeline/test/parsers/events
parent0397ff8b2206ab4e9308a524d635ec37ec9dda99 (diff)
downloaddexon-sol-tools-24fd2d9730d58a58929f401674175ad8a5a7fbc1.tar.gz
dexon-sol-tools-24fd2d9730d58a58929f401674175ad8a5a7fbc1.tar.zst
dexon-sol-tools-24fd2d9730d58a58929f401674175ad8a5a7fbc1.zip
Add support for pulling Cancel and CancelUpTo events
Diffstat (limited to 'packages/pipeline/test/parsers/events')
-rw-r--r--packages/pipeline/test/parsers/events/index_test.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/pipeline/test/parsers/events/index_test.ts b/packages/pipeline/test/parsers/events/index_test.ts
index 63e080edc..7e439ce39 100644
--- a/packages/pipeline/test/parsers/events/index_test.ts
+++ b/packages/pipeline/test/parsers/events/index_test.ts
@@ -5,7 +5,7 @@ import { LogWithDecodedArgs } from 'ethereum-types';
import 'mocha';
import { ExchangeFillEvent } from '../../../src/entities';
-import { _convertToEntity } from '../../../src/parsers/events';
+import { _convertToExchangeFillEvent } from '../../../src/parsers/events';
import { chaiSetup } from '../../utils/chai_setup';
chaiSetup.configure();
@@ -13,7 +13,7 @@ const expect = chai.expect;
// tslint:disable:custom-no-magic-numbers
describe('exchange_events', () => {
- describe('_convertToEntity', () => {
+ describe('_convertToExchangeFillEvent', () => {
it('converts LogWithDecodedArgs to ExchangeFillEvent entity', () => {
const input: LogWithDecodedArgs<ExchangeFillEventArgs> = {
logIndex: 102,
@@ -71,7 +71,7 @@ describe('exchange_events', () => {
expected.takerAssetProxyId = '0xf47261b0';
expected.takerTokenAddress = '0xe41d2489571d322189246dafa5ebde1f4699f498';
expected.takerTokenId = null;
- const actual = _convertToEntity(input);
+ const actual = _convertToExchangeFillEvent(input);
expect(actual).deep.equal(expected);
});
});