Skip to content
Prev Previous commit
Next Next commit
Update tests.js
  • Loading branch information
josemoracard authored Apr 11, 2023
commit 2cd2ff5aa6bfd125bf781e0691755660d3baac4a
6 changes: 3 additions & 3 deletions exercises/02-Separate-Stylesheet/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ describe("All the styles should be applied", ()=>{
const link = document.querySelector("link");
const body = document.querySelector("body");

test("The body tag should not contain any inline style", ()=>{
test("The <body> tag should not contain any inline style", ()=>{
document.querySelector("head").innerHTML = `<style>${css.toString()}</style>`;
let emptyBodyInlineStyle={};
expect(body.style._values).toEqual(emptyBodyInlineStyle)
});

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 All @@ -27,7 +27,7 @@ describe("All the styles should be applied", ()=>{
expect(href).toEqual('./styles.css')
});

test("Your body tag background color should be blue", ()=>{
test("Your <body> tag background color should be blue", ()=>{
let styles = window.getComputedStyle(body)
expect(styles["background-color"]).toBe("blue")
})
Expand Down