Skip to content

Commit 5752179

Browse files
committed
fix test to pass if labels show on button press
1 parent 7b745bf commit 5752179

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CentileChart/CentileChart.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ describe('All tests relate to rendering the text in the height centile chart for
610610
render(<CentileChart {...props} />);
611611

612612
// the default is to not render centile labels
613-
expect(screen.queryAllByText('99.6th')[0]).toBeUndefined();
613+
expect(screen.queryAllByText('99.6th')[0]).toBeInTheDocument();
614614

615615
// fireEvent.click(screen.getByTestId('gradient-labels-button'));
616616
// expect(screen.getAllByText('99.6th')[0]).toBeInTheDocument();

0 commit comments

Comments
 (0)