Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuchet committed Jun 12, 2024
1 parent 6c82ee6 commit 6301d35
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 18 deletions.
13 changes: 8 additions & 5 deletions packages/components/src/RadarChart/RadarChart.component.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
import PropTypes from 'prop-types';
import {
RadarChart as RechartsRadarChart,
PolarAngleAxis,
PolarGrid,
PolarRadiusAxis,
Dot as RechartsDot,
Radar,
PolarAngleAxis,
Dot as RechartsDot,
RadarChart as RechartsRadarChart,
} from 'recharts';

import tokens from '@talend/design-tokens';
import PropTypes from 'prop-types';
import radarChartCssModule from './RadarChart.module.scss';

import { getTheme } from '../theme';

import radarChartCssModule from './RadarChart.module.scss';

const theme = getTheme(radarChartCssModule);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
exports[`RadarChart should render a RadarChart 1`] = `
<div
class="recharts-wrapper tc-radar-chart theme-tc-radar-chart"
role="region"
style="position: relative; cursor: default; width: 420px; height: 250px;"
>
<svg
Expand Down Expand Up @@ -115,10 +114,10 @@ exports[`RadarChart should render a RadarChart 1`] = `
</g>
</g>
<g
class="recharts-layer recharts-polar-radius-axis"
class="recharts-layer recharts-polar-radius-axis radiusAxis"
/>
<g
class="recharts-layer recharts-polar-angle-axis"
class="recharts-layer recharts-polar-angle-axis angleAxis"
>
<path
class="recharts-polygon angleAxis"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,6 @@ exports[`Guided Tour Container should render 1`] = `
style="width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;"
tabindex="0"
/>
<div
data-focus-guard="true"
style="width: 1px; height: 0px; padding: 0px; overflow: hidden; position: fixed; top: 1px; left: 1px;"
tabindex="1"
/>
<div
data-focus-lock-disabled="false"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ exports[`Horizontal bar chart should render 1`] = `
>
<div
class="recharts-wrapper theme-horizontal-bar-chart"
role="region"
style="position: relative; cursor: default; width: 100%; height: 100%; max-height: 300px; max-width: 400px;"
>
<svg
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { render } from '@testing-library/react';

import VerticalBarChart from './VerticalBarChart.component';

describe('Vertical bar chart', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ exports[`Vertical bar chart Should render 1`] = `
>
<div
class="recharts-wrapper theme-vertical-bar-chart"
role="region"
style="position: relative; cursor: default; width: 100%; height: 100%; max-height: 300px; max-width: 300px;"
>
<svg
Expand Down
6 changes: 3 additions & 3 deletions tools/babel-plugin-assets-api/__fixtures__/first/output.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import React from 'react';

import assetsAPI from '@talend/assets-api';

assetsAPI.getURL('/', 'react', '18.2.0');
assetsAPI.getURL('/', 'react', '18.3.1');
assetsAPI.getURL('/', 'react', '16.13.0');
assetsAPI.getJSON('/foo.json', 'react', '18.2.0');
assetsAPI.getJSON('/foo.json', 'react', '18.3.1');
assetsAPI.getJSON('/foo.json', 'react', '16.13.0');
assetsAPI.getUMD('react', '18.2.0', 'React', '/umd/react.production.min.js');
assetsAPI.getUMD('react', '18.3.1', 'React', '/umd/react.production.min.js');
assetsAPI.getUMD('react', '16.13.0', 'ReactWrong', '/umd/react.production.min.js');

0 comments on commit 6301d35

Please sign in to comment.