Skip to content

Commit

Permalink
Merge pull request #52 from vikram-raj/test-fix
Browse files Browse the repository at this point in the history
fix unit tests
  • Loading branch information
openshift-merge-bot[bot] authored Jan 25, 2024
2 parents b4e888c + 0457b57 commit 69841c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const PipelinesRunsNumbersChart: React.FC<PipelinesRunsNumbersChartProps> = ({
useInterval(getSummaryData, interval, namespace, date);

const chartData = tickValues?.map((value) => {
const s = data?.summary.find((d) => {
const s = data?.summary?.find((d) => {
return (
new Date(d.group_value * 1000).toDateString() ===
new Date(value).toDateString()
Expand Down
8 changes: 4 additions & 4 deletions src/components/pipelines-overview/PipelineRunsStatusCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const PipelinesRunsStatusCard: React.FC<PipelinesRunsStatusCardProps> = ({
const tickValues = getXaxisValues(timespan);

const chartDataSucceeded = tickValues?.map((value) => {
const s = data2?.summary.find((d) => {
const s = data2?.summary?.find((d) => {
return (
new Date(d.group_value * 1000).toDateString() ===
new Date(value).toDateString()
Expand All @@ -140,7 +140,7 @@ const PipelinesRunsStatusCard: React.FC<PipelinesRunsStatusCardProps> = ({
});

const chartDataFailed = tickValues?.map((value) => {
const s = data2?.summary.find((d) => {
const s = data2?.summary?.find((d) => {
return (
new Date(d.group_value * 1000).toDateString() ===
new Date(value).toDateString()
Expand All @@ -154,7 +154,7 @@ const PipelinesRunsStatusCard: React.FC<PipelinesRunsStatusCardProps> = ({
});

const chartDataCancelled = tickValues?.map((value) => {
const s = data2?.summary.find((d) => {
const s = data2?.summary?.find((d) => {
return (
new Date(d.group_value * 1000).toDateString() ===
new Date(value).toDateString()
Expand All @@ -168,7 +168,7 @@ const PipelinesRunsStatusCard: React.FC<PipelinesRunsStatusCardProps> = ({
});

const chartDataOthers = tickValues?.map((value) => {
const s = data2?.summary.find((d) => {
const s = data2?.summary?.find((d) => {
return (
new Date(d.group_value * 1000).toDateString() ===
new Date(value).toDateString()
Expand Down

0 comments on commit 69841c4

Please sign in to comment.