File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
src/theme/default/components/pdf Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,8 @@ describe("Education", () => {
4040 } ) ;
4141
4242 it ( "handles empty education array" , ( ) => {
43- render ( < Education education = { [ ] } /> ) ;
44- expect ( screen . getByText ( "Education" ) ) . toBeInTheDocument ( ) ;
45- // Should still render the section title but no schools
43+ const { container } = render ( < Education education = { [ ] } /> ) ;
44+ expect ( container . firstChild ) . toBeNull ( ) ;
4645 } ) ;
4746
4847 it ( "handles education entry without school" , ( ) => {
@@ -53,8 +52,8 @@ describe("Education", () => {
5352 } ,
5453 ] ;
5554
56- render ( < Education education = { educationWithoutSchool } /> ) ;
57- expect ( screen . getByText ( "Education" ) ) . toBeInTheDocument ( ) ;
55+ const { container } = render ( < Education education = { educationWithoutSchool } /> ) ;
56+ expect ( container . firstChild ) . toBeNull ( ) ;
5857 expect (
5958 screen . queryByText ( new RegExp ( educationWithoutSchool [ 0 ] . degree ) ) ,
6059 ) . not . toBeInTheDocument ( ) ;
Original file line number Diff line number Diff line change @@ -35,9 +35,8 @@ describe("Skills", () => {
3535 } ) ;
3636
3737 it ( "handles empty skills array" , ( ) => {
38- render ( < Skills skillsForUser = { [ ] } /> ) ;
39- expect ( screen . getByText ( "Skills" ) ) . toBeInTheDocument ( ) ;
40- // Should still render the section title but no skills
38+ const { container } = render ( < Skills skillsForUser = { [ ] } /> ) ;
39+ expect ( container . firstChild ) . toBeNull ( ) ;
4140 } ) ;
4241
4342 it ( "renders skills in maroon color" , ( ) => {
You can’t perform that action at this time.
0 commit comments