Removed unnecesarry promise references in delete short URL modal

This commit is contained in:
Alejandro Celaya
2022-11-06 18:48:47 +01:00
parent 0f552ae6f4
commit cf4143e4e2
3 changed files with 10 additions and 16 deletions

View File

@@ -12,7 +12,7 @@ describe('<DeleteShortUrlModal />', () => {
shortCode: 'abc123',
longUrl: 'https://long-domain.com/foo/bar',
});
const deleteShortUrl = jest.fn(async () => Promise.resolve());
const deleteShortUrl = jest.fn();
const setUp = (shortUrlDeletion: Partial<ShortUrlDeletion>) => renderWithEvents(
<DeleteShortUrlModal
isOpen