inLogs no longer returns a promise. (#1169)

This commit is contained in:
Nicolás Venturo
2018-08-08 14:57:00 -03:00
committed by Matt Condon
parent 4066b5e683
commit 31fc572abe
5 changed files with 12 additions and 12 deletions

View File

@ -1,6 +1,6 @@
const should = require('chai').should();
async function inLogs (logs, eventName, eventArgs = {}) {
function inLogs (logs, eventName, eventArgs = {}) {
const event = logs.find(e => e.event === eventName);
should.exist(event);
for (const [k, v] of Object.entries(eventArgs)) {