@@ -6,10 +6,10 @@ document.documentElement.innerHTML = html.toString();
6
6
7
7
jest . dontMock ( "fs" ) ;
8
8
9
- describe ( "Both p tags should have a blue background" , ( ) => {
9
+ describe ( "Both <p> tags should have a blue background" , ( ) => {
10
10
const body = document . querySelector ( "body" )
11
11
const p = document . querySelectorAll ( "p" ) ;
12
- test ( "You should not change the existing head tag elements" , ( ) => {
12
+ test ( "You should not change the existing < head> tag elements" , ( ) => {
13
13
let head = document . querySelector ( 'head' )
14
14
expect ( head ) . toBeTruthy ( )
15
15
@@ -20,18 +20,18 @@ describe("Both p tags should have a blue background", () => {
20
20
expect ( title ) . toBe ( '04 Class selector' )
21
21
} ) ;
22
22
23
- test ( "The body tag should not contain any inline style" , ( ) => {
23
+ test ( "The < body> tag should not contain any inline style" , ( ) => {
24
24
document . querySelector (
25
25
"head"
26
26
) . innerHTML = `<style>${ css . toString ( ) } </style>` ;
27
27
let emptyBodyInlineStyle = { } ;
28
28
expect ( body . style . _values ) . toEqual ( emptyBodyInlineStyle )
29
29
} ) ;
30
30
31
- test ( "There should be two p tags" , ( ) => {
31
+ test ( "There should be two <p> tags" , ( ) => {
32
32
expect ( p . length ) . toBe ( 2 )
33
33
} ) ;
34
- test ( "Both p tags should have a class name 'b-blue'" , ( ) => {
34
+ test ( "Both <p> tags should have a class name 'b-blue'" , ( ) => {
35
35
p . forEach ( e => {
36
36
let eClass = e . getAttribute ( "class" ) ;
37
37
expect ( eClass ) . toBe ( "b-blue" )
0 commit comments