File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
exercises/03-Inline-Styles Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
- const fs = require ( "fs" ) ;
2
- const path = require ( "path" ) ;
3
- const html = fs . readFileSync ( path . resolve ( __dirname , "./index.html" ) , "utf8" ) ;
1
+
2
+ const fs = require ( "fs" ) ;
3
+ const path = require ( "path" ) ;
4
+ const html = fs . readFileSync ( path . resolve ( __dirname , "./index.html" ) , "utf8" ) ;
5
+
4
6
5
7
jest . dontMock ( "fs" ) ;
6
8
@@ -12,13 +14,15 @@ describe("The Table tag should contain inline style background: green", function
12
14
afterEach ( ( ) => {
13
15
jest . resetModules ( ) ;
14
16
} ) ;
17
+
15
18
it ( "You should not change the existing head tag elements" , function ( ) {
16
19
let head = document . querySelector ( 'head' ) ;
17
20
let meta = head . querySelector ( "meta" )
18
21
let title = head . querySelector ( 'title' ) . innerHTML
19
22
20
23
expect ( meta ) . toBe ( null )
21
24
expect ( title ) . toBe ( '03 Inline Styles' )
25
+
22
26
} )
23
27
24
28
it ( "The background should be green" , function ( ) {
You can’t perform that action at this time.
0 commit comments