mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-23 23:16:24 +00:00
Refactor DI approach for components
This commit is contained in:
@@ -2,10 +2,10 @@ import { render, screen } from '@testing-library/react';
|
||||
import { fromPartial } from '@total-typescript/shoehorn';
|
||||
import { MemoryRouter } from 'react-router-dom';
|
||||
import type { NonReachableServer, NotFoundServer } from '../../../src/servers/data';
|
||||
import { ServerError as createServerError } from '../../../src/servers/helpers/ServerError';
|
||||
import { ServerErrorFactory } from '../../../src/servers/helpers/ServerError';
|
||||
|
||||
describe('<ServerError />', () => {
|
||||
const ServerError = createServerError(() => null);
|
||||
const ServerError = ServerErrorFactory(fromPartial({ DeleteServerButton: () => null }));
|
||||
|
||||
it.each([
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user