change user to ad

This commit is contained in:
Sylvain Briat 2023-05-04 13:33:28 +00:00 committed by Grégoire Chevalier
parent d17a3b9867
commit 2208947f19
1 changed files with 2 additions and 2 deletions

View File

@ -54,10 +54,10 @@ describe('FindAdByUuidUseCase', () => {
const findAdByUuidRequest: FindAdByUuidRequest =
new FindAdByUuidRequest();
findAdByUuidRequest.uuid = 'bb281075-1b98-4456-89d6-c643d3044a91';
const user = await findAdByUuidUseCase.execute(
const ad = await findAdByUuidUseCase.execute(
new FindAdByUuidQuery(findAdByUuidRequest),
);
expect(user).toBe(mockAd);
expect(ad).toBe(mockAd);
});
it('should throw an error if ad does not exist', async () => {
const findAdByUuidRequest: FindAdByUuidRequest =