Fix strapi-admin e2e tests

Signed-off-by: Convly <jean-sebastien.herbaux@epitech.eu>
This commit is contained in:
Convly 2020-05-15 10:42:32 +02:00 committed by Alexandre Bodin
parent baf96a6456
commit 4b7424f6ef

View File

@ -55,7 +55,8 @@ describe('Admin User CRUD End to End', () => {
expect(res.body).toMatchObject({
statusCode: 400,
error: 'Bad Request',
message: {
message: 'ValidationError',
data: {
email: ['email is a required field'],
},
});
@ -79,7 +80,8 @@ describe('Admin User CRUD End to End', () => {
expect(res.body).toMatchObject({
statusCode: 400,
error: 'Bad Request',
message: {
message: 'ValidationError',
data: {
firstname: ['firstname must be a `string` type, but the final value was: `1`.'],
},
});