Skip to content

Commit

Permalink
chore: update unit test draw
Browse files Browse the repository at this point in the history
  • Loading branch information
Lan Le committed Sep 22, 2023
1 parent 43c80df commit 91456b9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/__tests__/units/components/common/draw.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ describe('common/draw', () => {
const { queryByTestId } = render(<TestComponent />);
const renderResult = queryByTestId('testsvg');
expect(renderResult).toBeInTheDocument();
expect(document.querySelector('svg')).toHaveClass('d3Svg');
})
})
const svgElement = document.querySelector('svg');
expect(svgElement).toHaveClass('d3Svg');
expect(svgElement).toHaveAttribute('preserveAspectRatio', 'xMinYMin meet');
expect(svgElement).toHaveAttribute('viewBox', '0 0 100 100');
});
})

0 comments on commit 91456b9

Please sign in to comment.