Skip to content

Commit b45c953

Browse files
committed
Updated 4GeeksAcademy#1 and fixed issues
1 parent ca17a50 commit b45c953

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<!DOCTYPE html>
22
<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>
1212
</html>

exercises/01-Your-First-Style/tests.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,14 @@ describe("All the styles should be applied", function() {
2525
expect(bodyInlineStyle[0].style._values).toEqual(emptyBodyInlineStyle);
2626
// console.log(bodyInlineStyle[0].style._values.background);
2727
});
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+
})
2838
});

0 commit comments

Comments
 (0)