@@ -10,23 +10,23 @@ let cssArray = null;
1010
1111describe ( "All the styles should be applied" , ( ) => {
1212 const icons = document . querySelectorAll ( "i" ) ;
13- test ( "The ul tag should exist" , ( ) => {
13+ test ( "The <ul> tag should exist" , ( ) => {
1414 expect ( document . querySelector ( "ul" ) ) . toBeTruthy ( ) ;
1515 } ) ;
16- test ( "At least 3 li tags should exist" , ( ) => {
16+ test ( "At least 3 <li> tags should exist" , ( ) => {
1717 expect ( document . querySelectorAll ( "li" ) . length ) . toBe ( 3 ) ;
1818 } ) ;
19- test ( "At least 3 i tags should exist" , ( ) => {
19+ test ( "At least 3 <i> tags should exist" , ( ) => {
2020 expect ( document . querySelectorAll ( "i" ) . length ) . toBe ( 3 ) ;
2121 } ) ;
22- test ( "There should be some text on the li tags" , ( ) => {
22+ test ( "The <i> tags should be inside the <li> tags" , ( ) => {
2323 expect ( document . querySelector ( "li" ) ) . toBeTruthy ( ) ;
2424 const li = document . querySelectorAll ( "li" ) ;
2525 for ( let i = 0 ; i < li . length ; i ++ ) {
2626 expect ( li [ i ] . innerHTML ) . toBeTruthy ( ) ;
2727 }
2828 } ) ;
29- test ( 'The i tags should have any Font Awesome class starting with "fa" | ex. "fa-solid"' , ( ) => {
29+ test ( 'The <i> tags should have any Font Awesome class starting with "fa" | ex. "fa-solid"' , ( ) => {
3030 //or use query selector to compare hoy mane scriptags do we have
3131 expect ( icons ) . toBeTruthy ( ) ;
3232
0 commit comments