mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-06-01 18:16:18 +00:00
Migrated shortUrlDeletion reducer to RTK
This commit is contained in:
@@ -52,7 +52,7 @@ describe('shortUrlsListReducer', () => {
|
||||
error: false,
|
||||
};
|
||||
|
||||
expect(reducer(state, { type: SHORT_URL_DELETED, payload: { shortCode } } as any)).toEqual({
|
||||
expect(reducer(state, { type: `${SHORT_URL_DELETED}/fulfilled`, payload: { shortCode } } as any)).toEqual({
|
||||
shortUrls: {
|
||||
data: [{ shortCode, domain: 'example.com' }, { shortCode: 'foo' }],
|
||||
pagination: { totalItems: 9 },
|
||||
|
||||
Reference in New Issue
Block a user