Test(crud) ensure list doesn't error
This commit is contained in:
parent
adb1d71984
commit
5923f0dbcb
@ -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 })),
|
||||
|
Loading…
Reference in New Issue
Block a user