Fix tests

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-12-03 10:06:10 -05:00
1 parent 8ecae2ce7d
commit 7a1e9438f9
1 file changed
+2 -2
@@ -68,7 +68,7 @@ export class NetworkPolicyDetails extends React.Component<Props> {
} }
return Object.entries(matchLabels) return Object.entries(matchLabels)
.map(([key, value]) => <li key={key}>{key}:{value}</li>); .map(([key, value]) => <li key={key}>{key}: {value}</li>);
} }
renderMatchExpressions(matchExpressions: LabelMatchExpression[] | undefined) { renderMatchExpressions(matchExpressions: LabelMatchExpression[] | undefined) {
@@ -80,7 +80,7 @@ export class NetworkPolicyDetails extends React.Component<Props> {
switch (expr.operator) { switch (expr.operator) {
case "DoesNotExist": case "DoesNotExist":
case "Exists": case "Exists":
return <li key={expr.key}>{expr.key}({expr.operator})</li>; return <li key={expr.key}>{expr.key} ({expr.operator})</li>;
case "In": case "In":
case "NotIn": case "NotIn":
return ( return (