change user to ad
This commit is contained in:
parent
d17a3b9867
commit
2208947f19
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue