Skip to content

Commit 1323f6a

Browse files
Ajouter la méthode findById dans le contrôleur Identities
1 parent 39575da commit 1323f6a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/management/identities/identities.controller.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ describe('IdentitiesController', () => {
4949
() => Promise.reject(new Error('Error')), // Function that throws an error
5050
],
5151
findOne: [() => Promise.resolve({ ...IdentitiesDtoStub(), _id }), () => Promise.reject(new Error('Error'))],
52+
findById: [() => Promise.resolve({ ...IdentitiesDtoStub(), _id }), () => Promise.reject(new Error('Error'))],
5253
update: [() => Promise.resolve({ ...IdentitiesDtoStub(), _id }), () => Promise.reject(new Error('Error'))],
5354
delete: [() => Promise.resolve({ ...IdentitiesDtoStub(), _id }), () => Promise.reject(new Error('Error'))],
5455
});

0 commit comments

Comments
 (0)