OperationCode/front-end

View on GitHub
components/FeaturedJobItem/__stories__/FeaturedJobItem.stories.tsx

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
import { Meta, StoryObj } from '@storybook/react';
import { descriptions } from 'common/constants/descriptions';
import FeaturedJobItem from '../FeaturedJobItem';

type FeaturedJobItemStoryType = StoryObj<typeof FeaturedJobItem>;

const meta: Meta<typeof FeaturedJobItem> = {
  title: 'FeaturedJobItem',
  component: FeaturedJobItem,
};

export default meta;

/**
 * Default FeaturedJobItem supplied with only required args.
 */
export const Default: FeaturedJobItemStoryType = {
  render: args => <FeaturedJobItem {...args} />,
  args: {
    title: 'Job Title',
    source: 'Company Name',
    sourceUrl: '#',
    description: descriptions.long,
  },
};