mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-23 19:48:13 +00:00
20 lines
683 B
JavaScript
20 lines
683 B
JavaScript
var assert = require('assert');
|
|
var formatters = require('../lib/web3/formatters.js');
|
|
|
|
describe('formatters', function () {
|
|
describe('outputLogFormatter', function () {
|
|
it('should return the correct value', function () {
|
|
|
|
assert.deepEqual(formatters.outputLogFormatter({
|
|
number: '0x3e8',
|
|
data: '0x7b2274657374223a2274657374227d',
|
|
topic: ['0x68656c6c6f','0x6d79746f70696373']
|
|
}), {
|
|
number: 1000,
|
|
data: '0x7b2274657374223a2274657374227d',
|
|
topic: ['0x68656c6c6f','0x6d79746f70696373']
|
|
});
|
|
});
|
|
});
|
|
});
|