add phone

This commit is contained in:
Gsk54
2022-12-21 16:15:57 +01:00
parent 5d8eb42ae6
commit 7effaa7c40
12 changed files with 50 additions and 17 deletions

View File

@@ -9,18 +9,21 @@ const mockUsers = [
firstName: 'John',
lastName: 'Doe',
email: 'john.doe@email.com',
phone: '0601020304',
},
{
uuid: 'bb281075-1b98-4456-89d6-c643d3044a92',
firstName: 'Jane',
lastName: 'Doe',
email: 'jane.doe@email.com',
phone: '0602030405',
},
{
uuid: 'bb281075-1b98-4456-89d6-c643d3044a93',
firstName: 'Jimmy',
lastName: 'Doe',
email: 'jimmy.doe@email.com',
phone: '0603040506',
},
];
@@ -57,7 +60,7 @@ describe('DeleteUserUseCase', () => {
});
describe('execute', () => {
it('should delete an User', async () => {
it('should delete a user', async () => {
const savedUuid = mockUsers[0].uuid;
const deleteUserCommand = new DeleteUserCommand(savedUuid);
await deleteUserUseCase.execute(deleteUserCommand);