Wrapped additional error data under data

This commit is contained in:
Jori Lallo
2018-03-07 00:00:58 -08:00
parent f5c1ddf8b9
commit 983b8fe9a0
5 changed files with 8 additions and 6 deletions

View File

@ -181,7 +181,7 @@ describe('Authentication middleware', async () => {
expect(e.message).toEqual(
'Your access has been suspended by the team admin'
);
expect(e.adminEmail).toEqual(admin.email);
expect(e.errorData.adminEmail).toEqual(admin.email);
}
});
});