Fixed tests

This commit is contained in:
Alejandro Celaya
2020-09-17 18:05:26 +02:00
parent 871868f0a4
commit 51556d76ac
3 changed files with 14 additions and 14 deletions

View File

@@ -3,6 +3,7 @@ import { shallow, ShallowWrapper } from 'enzyme';
import { Doughnut, HorizontalBar } from 'react-chartjs-2';
import { keys, values } from 'ramda';
import DefaultChart from '../../../src/visits/helpers/DefaultChart';
import { prettify } from '../../../src/utils/helpers/numbers';
describe('<DefaultChart />', () => {
let wrapper: ShallowWrapper;
@@ -69,7 +70,7 @@ describe('<DefaultChart />', () => {
expect(scales).toEqual({
xAxes: [
{
ticks: { beginAtZero: true, precision: 0 },
ticks: { beginAtZero: true, precision: 0, callback: prettify },
stacked: true,
},
],