Test(crud) ensure list doesn't error

This commit is contained in:
Joey Baker 2016-10-20 16:50:26 -07:00
parent adb1d71984
commit 5923f0dbcb

View File

@ -126,6 +126,8 @@ test('crud#list handler', async (t) => {
const response = reply.args[0][0];
t.falsy(response instanceof Error, response);
t.deepEqual(
response,
models.map(({ id }) => ({ id })),