summaryrefslogtreecommitdiffstats
path: root/src/components/atoms/icons/sun.test.tsx
blob: 21661a919daef3a4d5107999458878c8d1a7355f (plain)
1
2
3
4
5
6
7
8
9
import { render } from '@test-utils';
import Sun from './sun';

describe('Sun', () => {
  it('renders a sun icon', () => {
    const { container } = render(<Sun />);
    expect(container).toBeDefined();
  });
});
} /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
import { ComponentMeta, ComponentStory } from '@storybook/react';
import CloseIcon from './close';

/**
 * Close icon - Storybook Meta
 */
export default {
  title: 'Atoms/Illustrations/Icons',
  component: CloseIcon,
  argTypes: {
    className: {
      control: {
        type: 'text',
      },
      description: 'Set additional classnames.',
      table: {
        category: 'Styles',
      },
      type: {
        name: 'string',
        required: false,
      },
    },
  },
} as ComponentMeta<typeof CloseIcon>;

const Template: ComponentStory<typeof CloseIcon> = (args) => (
  <CloseIcon {...args} />
);

/**
 * Icons Stories - Close
 */
export const Close = Template.bind({});