Skip to content

Commit

Permalink
AllEventsLogDecoderTest updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Furter committed Feb 19, 2019
1 parent 773b3c4 commit 1ac3bc8
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,13 @@ describe('AllEventsLogDecoderTest', () => {
data: '0x0'
};

abiCoderMock.decodeLog.mockReturnValueOnce(['0x0']);

abiModelMock.getEventBySignature.mockReturnValueOnce(false);

abiItemModel.getInputs.mockReturnValueOnce([]);

const decodedLog = allEventsLogDecoder.decode(abiModelMock, response);

expect(decodedLog.data).toEqual(['0x0']);
expect(decodedLog.raw.data).toEqual('0x0');

expect(decodedLog.topics).toEqual('0x0');
expect(decodedLog.raw.topics).toEqual(['0x0']);

expect(abiModelMock.getEventBySignature).toHaveBeenCalledWith('0x0');
});
Expand Down

0 comments on commit 1ac3bc8

Please sign in to comment.