feat: update event names for OZ standards and test them

This commit is contained in:
Matt Condon
2017-12-04 13:42:55 +02:00
parent 5e55569db6
commit 677d05743c
4 changed files with 52 additions and 15 deletions

View File

@ -0,0 +1,16 @@
const assert = require('chai').assert;
const inLogs = async (logs, eventName) => {
const event = logs.find(e => e.event === eventName);
assert.exists(event);
};
const inTransaction = async (tx, eventName) => {
const { logs } = await tx;
return inLogs(logs, eventName);
};
module.exports = {
inLogs,
inTransaction,
};