|
1 | 1 | import { render, screen } from '@testing-library/react'; |
| 2 | + |
| 3 | +import { RepeatIcon } from '../../icons/RepeatIcon'; |
2 | 4 | import { EventForm } from '../../types'; |
3 | 5 | import { generateRepeatEvents } from '../../utils/repeatUtils'; |
4 | 6 | import { createMockEvent } from '../utils'; |
@@ -120,22 +122,20 @@ describe('generateRepeatEvents: 반복 일정을 생성한다.', () => { |
120 | 122 | }); |
121 | 123 | }); |
122 | 124 |
|
123 | | - describe('RepeatIcon', () => { |
124 | | - describe('반복 일정 아이콘을 표시한다', () => { |
125 | | - it('반복 유형이 none인 경우 아이콘을 표시하지 않는다', () => { |
126 | | - render(<RepeatIcon repeatType="none" />); |
| 125 | + describe('반복 일정 아이콘을 표시한다', () => { |
| 126 | + it('반복 유형이 none인 경우 아이콘을 표시하지 않는다', () => { |
| 127 | + render(<RepeatIcon repeatType="none" />); |
127 | 128 |
|
128 | | - const icon = screen.queryByTestId('repeat-icon'); |
129 | | - expect(icon).not.toBeInTheDocument(); |
130 | | - }); |
| 129 | + const icon = screen.queryByTestId('repeat-icon'); |
| 130 | + expect(icon).not.toBeInTheDocument(); |
| 131 | + }); |
131 | 132 |
|
132 | | - it('매일 반복 일정 아이콘을 표시한다', () => { |
133 | | - render(<RepeatIcon repeatType="daily" />); |
| 133 | + it('매일 반복 일정 아이콘을 표시한다', () => { |
| 134 | + render(<RepeatIcon repeatType="daily" />); |
134 | 135 |
|
135 | | - const icon = screen.getByTestId('repeat-icon'); |
136 | | - expect(icon).toBeInTheDocument(); |
137 | | - expect(icon).toHaveAttribute('data-repeat-type', 'daily'); |
138 | | - }); |
| 136 | + const icon = screen.getByTestId('repeat-icon'); |
| 137 | + expect(icon).toBeInTheDocument(); |
| 138 | + expect(icon).toHaveAttribute('data-repeat-type', 'daily'); |
139 | 139 | }); |
140 | 140 | }); |
141 | 141 | }); |
0 commit comments