Skip to content

Commit

Permalink
fix assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed Apr 22, 2024
1 parent 13af7d4 commit 874ff0f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ describe('ExplorerChart', () => {
expect(+selectedInterval.getAttribute('height')).toBe(166);

const xAxisTicks = wrapper.getDOMNode().querySelector('.x').querySelectorAll('.tick');
expect([...xAxisTicks]).toHaveLength(1);
expect([...xAxisTicks]).toHaveLength(8);
const yAxisTicks = wrapper.getDOMNode().querySelector('.y').querySelectorAll('.tick');
expect([...yAxisTicks]).toHaveLength(10);

Expand All @@ -161,7 +161,7 @@ describe('ExplorerChart', () => {
expect(paths[1].getAttribute('class')).toBe('domain');
expect(paths[2].getAttribute('class')).toBe('values-line');
expect(paths[2].getAttribute('d')).toBe(
'MNaN,159.33024504444444ZMNaN,9.166257955555556LNaN,169.60736875555557'
'M-19.090909090909093,159.33024504444444ZM-20,9.166257955555556L-20.22727272727273,169.60736875555557'
);

const dots = wrapper.getDOMNode().querySelector('.values-dots').querySelectorAll('circle');
Expand Down

0 comments on commit 874ff0f

Please sign in to comment.