Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update tests.js
  • Loading branch information
josemoracard authored Apr 11, 2023
commit c8c602e1f84aafa675c5b34660233ed132b94d32
8 changes: 4 additions & 4 deletions exercises/06-Practicing-Rules/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe("All the styles should be applied", () => {
let styles = window.getComputedStyle(body);
expect(styles["padding-left"]).toBe("20px");
});
test("The font-family in the h1 tag should be 'Courier'", () => {
test("The font-family in the <h1> tag should be 'Courier'", () => {
document.querySelector(
"head"
).innerHTML = `<style>${css.toString()}</style>`;
Expand All @@ -46,7 +46,7 @@ describe("All the styles should be applied", () => {
// get computed styles of any element you like
expect(h1TagStyles["font-family"].toLowerCase()).toBe("\"courier\"");
});
test("The color in the h1 tag should be 'red'", () => {
test("The color in the <h1> tag should be 'red'", () => {
document.querySelector(
"head"
).innerHTML = `<style>${css.toString()}</style>`;
Expand All @@ -55,7 +55,7 @@ describe("All the styles should be applied", () => {
// get computed styles of any element you like
expect(h1TagStyles["color"]).toBe("red");
});
test("the text-decoration in the h2 tag should be 'underline'", () => {
test("the text-decoration in the <h2> tag should be 'underline'", () => {
document.querySelector(
"head"
).innerHTML = `<style>${css.toString()}</style>`;
Expand Down Expand Up @@ -102,7 +102,7 @@ describe("All the styles should be applied", () => {
}
expect(orangeHoverSelector).toBe('green');
});
test("You should not change the existing head tag elements", () => {
test("You should not change the existing <head> tag elements", () => {
let head = document.querySelector('head')
expect(head).toBeTruthy()

Expand Down