mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-11 10:03:51 +00:00
Fix shlink-web-component tests
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import { fromPartial } from '@total-typescript/shoehorn';
|
||||
import { MemoryRouter } from 'react-router';
|
||||
import { AsideMenu } from '../../src/common/AsideMenu';
|
||||
|
||||
describe('<AsideMenu />', () => {
|
||||
const setUp = () => render(
|
||||
<MemoryRouter>
|
||||
<AsideMenu selectedServer={fromPartial({ id: 'abc123', version: '2.8.0' })} />
|
||||
<AsideMenu routePrefix="/abc123" />
|
||||
</MemoryRouter>,
|
||||
);
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { render, screen } from '@testing-library/react';
|
||||
import { fromPartial } from '@total-typescript/shoehorn';
|
||||
import type { InvalidArgumentError, ProblemDetailsError } from '../../src/api/types/errors';
|
||||
import { ErrorTypeV2, ErrorTypeV3 } from '../../src/api/types/errors';
|
||||
import type { InvalidArgumentError, ProblemDetailsError } from '../../src/api-contract';
|
||||
import { ErrorTypeV2, ErrorTypeV3 } from '../../src/api-contract';
|
||||
import type { ShlinkApiErrorProps } from '../../src/common/ShlinkApiError';
|
||||
import { ShlinkApiError } from '../../src/common/ShlinkApiError';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user