File tree Expand file tree Collapse file tree 2 files changed +19
-9
lines changed
exercises/01-Your-First-Style Expand file tree Collapse file tree 2 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html >
3
- < head >
4
- < meta charset ="utf-8 " />
5
- < meta name ="viewport " content ="width=device-width " />
6
- < style >
7
- /* Your code here */
8
- </ style >
9
- < title > 01 Your First Style</ title >
10
- </ head >
11
- < body > </ body >
3
+ < head >
4
+ < meta charset ="utf-8 " />
5
+ < meta name ="viewport " content ="width=device-width " />
6
+ < style >
7
+ /* Your code here */
8
+ </ style >
9
+ < title > 01 Your First Style</ title >
10
+ </ head >
11
+ < body > </ body >
12
12
</ html >
Original file line number Diff line number Diff line change @@ -25,4 +25,14 @@ describe("All the styles should be applied", function() {
25
25
expect ( bodyInlineStyle [ 0 ] . style . _values ) . toEqual ( emptyBodyInlineStyle ) ;
26
26
// console.log(bodyInlineStyle[0].style._values.background);
27
27
} ) ;
28
+ it ( "You should not change the exixsting head tag elements" , function ( ) {
29
+
30
+ let meta1 = document . getElementsByTagName ( 'head' ) [ 0 ] . innerHTML . toString ( ) . indexOf ( "<meta c" )
31
+ let meta2 = document . getElementsByTagName ( 'head' ) [ 0 ] . innerHTML . toString ( ) . indexOf ( "<meta n" )
32
+
33
+ expect ( meta1 ) . not . toBe ( - 1 )
34
+ expect ( meta2 ) . not . toBe ( - 1 )
35
+
36
+
37
+ } )
28
38
} ) ;
You can’t perform that action at this time.
0 commit comments