mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-13 01:56:17 +00:00
Fix incorrect types between testing library and vitest
This commit is contained in:
@@ -16,8 +16,6 @@ describe('shortUrlEditionReducer', () => {
|
||||
const editShortUrl = editShortUrlCreator(buildShlinkApiClient);
|
||||
const { reducer } = shortUrlEditionReducerCreator(editShortUrl);
|
||||
|
||||
afterEach(vi.clearAllMocks);
|
||||
|
||||
describe('reducer', () => {
|
||||
it('returns loading on EDIT_SHORT_URL_START', () => {
|
||||
expect(reducer(undefined, editShortUrl.pending('', fromPartial({})))).toEqual({
|
||||
@@ -51,8 +49,6 @@ describe('shortUrlEditionReducer', () => {
|
||||
selectedServer,
|
||||
});
|
||||
|
||||
afterEach(vi.clearAllMocks);
|
||||
|
||||
it.each([[undefined], [null], ['example.com']])('dispatches short URL on success', async (domain) => {
|
||||
await editShortUrl({ shortCode, domain, data: { longUrl } })(dispatch, createGetState(), {});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user