Skip to content

Commit

Permalink
fix dev test, simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Nov 28, 2024
1 parent 1c680bf commit ea0985a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions src/components/page-scheduled-job/dev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { PageScheduledJob } from '.';
import type { ScheduledJobSummary } from '../../store/radix-api';

const testData: Array<
Parameters<typeof PageScheduledJob>[0] & { jobData?: ScheduledJobSummary }
Parameters<typeof PageScheduledJob>[0] & { jobData: ScheduledJobSummary }
> = [
{
appName: 'succeeded-app',
Expand Down Expand Up @@ -61,12 +61,6 @@ const testData: Array<
deploymentName: 'unknown-deployment',
},
},
{
appName: 'empty-app',
envName: 'empty-env',
jobComponentName: 'empty-component',
scheduledJobName: 'no-job',
},
];

// Mock API response
Expand All @@ -76,7 +70,6 @@ new Server({
testData.forEach(({ scheduledJobName, jobData }) => {
this.get(
`/api/v1/applications/:appName/environments/:envName/jobcomponents/:jobComponentName/jobs/${scheduledJobName}`,
// @ts-expect-error no need to fix the type here?
() => jobData
);
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/page-step/dev.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import PageStep from '.';
import { PageStep } from '.';

export default (
<>
Expand Down

0 comments on commit ea0985a

Please sign in to comment.