Skip to content

Commit

Permalink
refactor: Remove snapshot test & artifact from Question tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Jul 12, 2024
1 parent 8f75721 commit 64e25f8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 499 deletions.
26 changes: 0 additions & 26 deletions frontend/src/components/Question/Question.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,32 +61,6 @@ describe('Question Component', () => {
expect(mockOnChange).toHaveBeenCalledWith('New Value', 'test-question');
});

it('renders different question views based on the view prop', () => {
const views = [
QuestionViews.BUTTON_ARRAY,
QuestionViews.CHECKBOXES,
QuestionViews.DROPDOWN,
QuestionViews.AUTOCOMPLETE,
QuestionViews.RADIOS,
QuestionViews.RANGE,
QuestionViews.TEXT_RANGE,
QuestionViews.ICON_RANGE,
QuestionViews.STRING,
];

views.forEach((view) => {
const props = {
...defaultProps,
question: {
...defaultProps.question,
view,
},
};
const { container } = render(<Question {...props} />);
expect(container.firstChild).toMatchSnapshot();
});
});

it('applies emphasizeTitle class when emphasizeTitle prop is true', () => {
const { container } = render(<Question {...defaultProps} emphasizeTitle />);
expect(container.querySelector('.title')).toBeTruthy();
Expand Down
Loading

0 comments on commit 64e25f8

Please sign in to comment.