mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-18 13:33:51 +00:00
Migrated ForServerVersion test from enzyme to react testing library
This commit is contained in:
@@ -8,7 +8,9 @@ interface ForServerVersionConnectProps extends ForServerVersionProps {
|
||||
selectedServer: SelectedServer;
|
||||
}
|
||||
|
||||
const ForServerVersion: FC<ForServerVersionConnectProps> = ({ minVersion, maxVersion, selectedServer, children }) => {
|
||||
export const ForServerVersion: FC<ForServerVersionConnectProps> = (
|
||||
{ minVersion, maxVersion, selectedServer, children },
|
||||
) => {
|
||||
if (!isReachableServer(selectedServer)) {
|
||||
return null;
|
||||
}
|
||||
@@ -22,5 +24,3 @@ const ForServerVersion: FC<ForServerVersionConnectProps> = ({ minVersion, maxVer
|
||||
|
||||
return <>{children}</>;
|
||||
};
|
||||
|
||||
export default ForServerVersion;
|
||||
|
||||
Reference in New Issue
Block a user