mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-05-03 20:06:19 +00:00
Created view to edit short URLs
This commit is contained in:
@@ -51,7 +51,7 @@ describe('shortUrlDetailReducer', () => {
|
||||
const buildGetState = (shortUrlsList?: ShortUrlsList) => () => Mock.of<ShlinkState>({ shortUrlsList });
|
||||
|
||||
it('dispatches start and error when promise is rejected', async () => {
|
||||
const ShlinkApiClient = buildApiClientMock(Promise.reject());
|
||||
const ShlinkApiClient = buildApiClientMock(Promise.reject({}));
|
||||
|
||||
await getShortUrlDetail(() => ShlinkApiClient)('abc123', '')(dispatchMock, buildGetState());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user