Skip to content

Commit

Permalink
fixup! test(FileLink): test for FileLink added
Browse files Browse the repository at this point in the history
  • Loading branch information
niktverd committed Feb 28, 2024
1 parent 22a8bdd commit cd39bf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/FileLink/__tests__/FileLink.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const fileLink = {
};

const TYPES: Array<FileLinkProps['type']> = ['horizontal', 'vertical'];
const TEXT_SIZRS: Array<FileLinkProps['textSize']> = ['s', 'xs', 'm', 'l'];
const TEXT_SIZES: Array<FileLinkProps['textSize']> = ['s', 'xs', 'm', 'l'];
const THEMES: Array<FileLinkProps['theme']> = ['default', 'dark', 'light'];

const qaAttributes = getQaAttrubutes(fileLink.qa, 'link', 'link-container');
Expand Down Expand Up @@ -49,7 +49,7 @@ describe('FileLink', () => {
expect(cardBase).toHaveClass(`pc-file-link_type_${type}`);
});

test.each(new Array<FileLinkProps['textSize']>(...TEXT_SIZRS))(
test.each(new Array<FileLinkProps['textSize']>(...TEXT_SIZES))(
'render with given "%s" textSize',
(textSize) => {
render(<FileLink {...fileLink} textSize={textSize} />);
Expand Down

0 comments on commit cd39bf1

Please sign in to comment.