@@ -10,23 +10,23 @@ let cssArray = null;
10
10
11
11
describe ( "All the styles should be applied" , ( ) => {
12
12
const icons = document . querySelectorAll ( "i" ) ;
13
- test ( "The ul tag should exist" , ( ) => {
13
+ test ( "The <ul> tag should exist" , ( ) => {
14
14
expect ( document . querySelector ( "ul" ) ) . toBeTruthy ( ) ;
15
15
} ) ;
16
- test ( "At least 3 li tags should exist" , ( ) => {
16
+ test ( "At least 3 <li> tags should exist" , ( ) => {
17
17
expect ( document . querySelectorAll ( "li" ) . length ) . toBe ( 3 ) ;
18
18
} ) ;
19
- test ( "At least 3 i tags should exist" , ( ) => {
19
+ test ( "At least 3 <i> tags should exist" , ( ) => {
20
20
expect ( document . querySelectorAll ( "i" ) . length ) . toBe ( 3 ) ;
21
21
} ) ;
22
- test ( "The i tags should be inside the li tags" , ( ) => {
22
+ test ( "The <i> tags should be inside the <li> tags" , ( ) => {
23
23
expect ( document . querySelector ( "li" ) ) . toBeTruthy ( ) ;
24
24
const li = document . querySelectorAll ( "li" ) ;
25
25
for ( let i = 0 ; i < li . length ; i ++ ) {
26
26
expect ( li [ i ] . innerHTML ) . toBeTruthy ( ) ;
27
27
}
28
28
} ) ;
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"' , ( ) => {
30
30
//or use query selector to compare hoy mane scriptags do we have
31
31
expect ( icons ) . toBeTruthy ( ) ;
32
32
0 commit comments