From 4469c55358fc2d7e1742f74bcf7d72b10043122c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Venturo?= Date: Thu, 22 Nov 2018 12:41:59 -0300 Subject: [PATCH] Added inTransaction tests. --- test/helpers/test/expectEvent.test.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/helpers/test/expectEvent.test.js b/test/helpers/test/expectEvent.test.js index 158a9f374..8d162faec 100644 --- a/test/helpers/test/expectEvent.test.js +++ b/test/helpers/test/expectEvent.test.js @@ -229,4 +229,11 @@ describe('expectEvent', function () { }); }); }); + + describe('inTransaction', function () { + it('processes the logs inside a transaction', async function () { + const tx = await this.emitter.emitShortUint(5); + expectEvent.inTransaction(tx, 'ShortInt', { value: 5 }); + }); + }); });