diff --git a/tests/deletions.js b/tests/deletions.js index cfbdc13..bb1c9a9 100644 --- a/tests/deletions.js +++ b/tests/deletions.js @@ -42,8 +42,8 @@ test.serial('removes a row from the specified table', async t => { test.serial('removes all rows from the specified table', async t => { await db.del('people') - morePeople.forEach(async person => { - const res = await db.first('people', { name: person }) + morePeople.forEach(async ({ name }) => { + const res = await db.first('people', { name }) t.falsy(res) }) })