aboutsummaryrefslogtreecommitdiffstats
path: root/test/event.js
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-29 22:22:55 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2015-01-29 22:22:55 +0800
commit94e0e5ab7d8ec9adcd03fedc3abe5cf6444a5123 (patch)
treedf0b2e41f5dc9e50b99fa45d597199fd71201678 /test/event.js
parente1c0862658ca80d2a4a85bd15eab38b0482fee1b (diff)
parent8613382869503c6123c3f47772bfdb192f6d3c76 (diff)
downloadgo-tangerine-94e0e5ab7d8ec9adcd03fedc3abe5cf6444a5123.tar
go-tangerine-94e0e5ab7d8ec9adcd03fedc3abe5cf6444a5123.tar.gz
go-tangerine-94e0e5ab7d8ec9adcd03fedc3abe5cf6444a5123.tar.bz2
go-tangerine-94e0e5ab7d8ec9adcd03fedc3abe5cf6444a5123.tar.lz
go-tangerine-94e0e5ab7d8ec9adcd03fedc3abe5cf6444a5123.tar.xz
go-tangerine-94e0e5ab7d8ec9adcd03fedc3abe5cf6444a5123.tar.zst
go-tangerine-94e0e5ab7d8ec9adcd03fedc3abe5cf6444a5123.zip
Merge branch 'cpp' into cpp2
Conflicts: example/balance.html
Diffstat (limited to 'test/event.js')
-rw-r--r--test/event.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/event.js b/test/event.js
new file mode 100644
index 000000000..781f42e5e
--- /dev/null
+++ b/test/event.js
@@ -0,0 +1,22 @@
+var assert = require('assert');
+var event = require('../lib/event.js');
+
+describe('event', function () {
+ it('should create filter input object from given', function () {
+
+ // given
+ var address = '0x012345';
+ var signature = '0x987654';
+
+ // when
+ var impl = event(address, signature);
+ var result = impl();
+
+ // then
+ assert.equal(result.address, address);
+ assert.equal(result.topics.length, 1);
+ assert.equal(result.topics[0], signature);
+
+ });
+});
+