mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-12-23 18:50:08 +00:00
Fix typechecks
This commit is contained in:
parent
4f2f3e3aea
commit
10ca9bd457
603
package-lock.json
generated
603
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -11,7 +11,7 @@ describe('<MainHeader />', () => {
|
|||||||
history.push(pathname);
|
history.push(pathname);
|
||||||
|
|
||||||
return renderWithStore(
|
return renderWithStore(
|
||||||
<Router location={history.location} navigator={history}>
|
<Router location={history.location} navigator={history} unstable_useTransitions={false}>
|
||||||
<MainHeader />
|
<MainHeader />
|
||||||
</Router>,
|
</Router>,
|
||||||
);
|
);
|
||||||
|
|||||||
@ -29,7 +29,7 @@ describe('<CreateServer />', () => {
|
|||||||
return {
|
return {
|
||||||
history,
|
history,
|
||||||
...renderWithStore(
|
...renderWithStore(
|
||||||
<Router location={history.location} navigator={history}>
|
<Router location={history.location} navigator={history} unstable_useTransitions={false}>
|
||||||
<CreateServer useTimeoutToggle={useTimeoutToggle} />
|
<CreateServer useTimeoutToggle={useTimeoutToggle} />
|
||||||
</Router>,
|
</Router>,
|
||||||
{
|
{
|
||||||
|
|||||||
@ -11,7 +11,7 @@ describe('<DeleteServerButton />', () => {
|
|||||||
const setUp = (children: ReactNode = 'Remove this server') => {
|
const setUp = (children: ReactNode = 'Remove this server') => {
|
||||||
const history = createMemoryHistory({ initialEntries: ['/foo'] });
|
const history = createMemoryHistory({ initialEntries: ['/foo'] });
|
||||||
const result = renderWithStore(
|
const result = renderWithStore(
|
||||||
<Router location={history.location} navigator={history}>
|
<Router location={history.location} navigator={history} unstable_useTransitions={false}>
|
||||||
<DeleteServerButton server={fromPartial({})}>{children}</DeleteServerButton>
|
<DeleteServerButton server={fromPartial({})}>{children}</DeleteServerButton>
|
||||||
</Router>,
|
</Router>,
|
||||||
);
|
);
|
||||||
|
|||||||
@ -20,7 +20,7 @@ describe('<EditServer />', () => {
|
|||||||
return {
|
return {
|
||||||
history,
|
history,
|
||||||
...renderWithStore(
|
...renderWithStore(
|
||||||
<Router location={history.location} navigator={history}>
|
<Router location={history.location} navigator={history} unstable_useTransitions={false}>
|
||||||
<EditServer />
|
<EditServer />
|
||||||
</Router>,
|
</Router>,
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user