Skip to content

Commit

Permalink
fix(rhelGraphCard): issues/38 test snapshot update (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdcabrera authored Jul 17, 2019
1 parent a94b11e commit 5e85eb3
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 3,419 deletions.
7 changes: 5 additions & 2 deletions src/common/__tests__/graphHelpers.test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { graphHelpers, getGraphHeight, getTooltipDimensions, getTooltipFontSize } from '../graphHelpers';
import { helpers } from '../helpers';

const { breakpoints } = helpers;

describe('GraphHelpers', () => {
const { breakpoints } = helpers;

it('should have specific functions', () => {
expect(graphHelpers).toMatchSnapshot('helpers');
});

it('should match graph heights at all breakpoints', () => {
expect(getGraphHeight(breakpoints, 'xs')).toMatchSnapshot('xs graph height');
expect(getGraphHeight(breakpoints, 'sm')).toMatchSnapshot('sm graph height');
Expand All @@ -15,6 +16,7 @@ describe('GraphHelpers', () => {
expect(getGraphHeight(breakpoints, 'xl')).toMatchSnapshot('xl graph height');
expect(getGraphHeight(breakpoints, 'xl2')).toMatchSnapshot('xl2 graph height');
});

it('should match tooltip dimensions at all breakpoints', () => {
expect(getTooltipDimensions(breakpoints, 'xs')).toMatchSnapshot('xs tooltip dimensions');
expect(getTooltipDimensions(breakpoints, 'sm')).toMatchSnapshot('sm tooltip dimensions');
Expand All @@ -23,6 +25,7 @@ describe('GraphHelpers', () => {
expect(getTooltipDimensions(breakpoints, 'xl')).toMatchSnapshot('xl tooltip dimensions');
expect(getTooltipDimensions(breakpoints, 'xl2')).toMatchSnapshot('xl2 tooltip dimensions');
});

it('should match tooltip font sizes at all breakpoints', () => {
expect(getTooltipFontSize(breakpoints, 'xs')).toMatchSnapshot('xs tooltip font sizes');
expect(getTooltipFontSize(breakpoints, 'sm')).toMatchSnapshot('sm tooltip font sizes');
Expand Down
Loading

0 comments on commit 5e85eb3

Please sign in to comment.