@@ -78,7 +78,6 @@ describe('RadarChart', () => {
7878 expect ( screen . getAllByText ( 'Python' ) ) . toBeDefined ( ) ;
7979 } ) ;
8080
81-
8281 it ( 'renders chart elements and layout structure visible across viewport sizes' , ( ) => {
8382 const mockLangsA = [
8483 { name : 'TypeScript' , percentage : 80 , color : '#3178c6' } ,
@@ -109,6 +108,14 @@ describe('RadarChart', () => {
109108 expect ( lines . length ) . toBeGreaterThan ( 0 ) ;
110109
111110 // Check that axis labels are rendered
111+ expect ( screen . getAllByText ( 'TypeScript' ) ) . toBeDefined ( ) ;
112+ expect ( screen . getAllByText ( 'Python' ) ) . toBeDefined ( ) ;
113+ expect ( screen . getAllByText ( 'JavaScript' ) ) . toBeDefined ( ) ;
114+
115+ // Check that data points (circles) are rendered
116+ const circles = container . querySelectorAll ( 'circle' ) ;
117+ expect ( circles . length ) . toBeGreaterThan ( 0 ) ;
118+ } ) ;
112119
113120 it ( 'deduplicates shared languages so TypeScript appears as a single axis label' , ( ) => {
114121 const langsA = [ { name : 'TypeScript' , percentage : 70 , color : '#3178c6' } ] ;
@@ -146,21 +153,17 @@ describe('RadarChart', () => {
146153 expect ( screen . getAllByText ( 'Python' ) ) . toBeDefined ( ) ;
147154 expect ( screen . getAllByText ( 'JavaScript' ) ) . toBeDefined ( ) ;
148155
149-
150- // Check that data points (circles) are rendered
151-
152156 expect ( screen . getByText ( '100%' ) ) . toBeDefined ( ) ;
153157 expect ( screen . getByText ( '10%' ) ) . toBeDefined ( ) ;
154158
155159 const svg = container . querySelector ( 'svg' ) ;
156160 expect ( svg ) . not . toBeNull ( ) ;
157161
158-
162+ // Check that data points (circles) are rendered
159163 const circles = container . querySelectorAll ( 'circle' ) ;
160164 expect ( circles . length ) . toBeGreaterThan ( 0 ) ;
161165 } ) ;
162166
163-
164167 it ( 'dynamically scales axis points based on dataset max score' , ( ) => {
165168 // Mock dataset with specific maximum score
166169 const mockLangsA = [
@@ -204,6 +207,7 @@ describe('RadarChart', () => {
204207 circlePositions . map ( ( pos ) => `${ pos . cx } ,${ pos . cy } ` )
205208 ) ;
206209 expect ( uniquePositions . size ) . toBeGreaterThan ( 1 ) ;
210+ } ) ;
207211
208212 it ( 'check generation of different polygon coordinates for different score magnitudes' , ( ) => {
209213 const highScores = [
@@ -267,6 +271,5 @@ describe('RadarChart', () => {
267271 unmount ( ) ;
268272 }
269273 ) ;
270-
271274 } ) ;
272275} ) ;
0 commit comments