Skip to content

Commit c8c602e

Browse files
authored
Update tests.js
1 parent 7810dfe commit c8c602e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

exercises/06-Practicing-Rules/tests.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ describe("All the styles should be applied", () => {
3737
let styles = window.getComputedStyle(body);
3838
expect(styles["padding-left"]).toBe("20px");
3939
});
40-
test("The font-family in the h1 tag should be 'Courier'", () => {
40+
test("The font-family in the <h1> tag should be 'Courier'", () => {
4141
document.querySelector(
4242
"head"
4343
).innerHTML = `<style>${css.toString()}</style>`;
@@ -46,7 +46,7 @@ describe("All the styles should be applied", () => {
4646
// get computed styles of any element you like
4747
expect(h1TagStyles["font-family"].toLowerCase()).toBe("\"courier\"");
4848
});
49-
test("The color in the h1 tag should be 'red'", () => {
49+
test("The color in the <h1> tag should be 'red'", () => {
5050
document.querySelector(
5151
"head"
5252
).innerHTML = `<style>${css.toString()}</style>`;
@@ -55,7 +55,7 @@ describe("All the styles should be applied", () => {
5555
// get computed styles of any element you like
5656
expect(h1TagStyles["color"]).toBe("red");
5757
});
58-
test("the text-decoration in the h2 tag should be 'underline'", () => {
58+
test("the text-decoration in the <h2> tag should be 'underline'", () => {
5959
document.querySelector(
6060
"head"
6161
).innerHTML = `<style>${css.toString()}</style>`;
@@ -102,7 +102,7 @@ describe("All the styles should be applied", () => {
102102
}
103103
expect(orangeHoverSelector).toBe('green');
104104
});
105-
test("You should not change the existing head tag elements", () => {
105+
test("You should not change the existing <head> tag elements", () => {
106106
let head = document.querySelector('head')
107107
expect(head).toBeTruthy()
108108

0 commit comments

Comments
 (0)