Skip to content

Commit 2be6b49

Browse files
authored
Update test.js
1 parent 1d76734 commit 2be6b49

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

exercises/04-Class-Selector/test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ document.documentElement.innerHTML = html.toString();
66

77
jest.dontMock("fs");
88

9-
describe("Both p tags should have a blue background", () => {
9+
describe("Both <p> tags should have a blue background", () => {
1010
const body = document.querySelector("body")
1111
const p = document.querySelectorAll("p");
12-
test("You should not change the existing head tag elements", () => {
12+
test("You should not change the existing <head> tag elements", () => {
1313
let head = document.querySelector('head')
1414
expect(head).toBeTruthy()
1515

@@ -20,18 +20,18 @@ describe("Both p tags should have a blue background", () => {
2020
expect(title).toBe('04 Class selector')
2121
});
2222

23-
test("The body tag should not contain any inline style", () => {
23+
test("The <body> tag should not contain any inline style", () => {
2424
document.querySelector(
2525
"head"
2626
).innerHTML = `<style>${css.toString()}</style>`;
2727
let emptyBodyInlineStyle = {};
2828
expect(body.style._values).toEqual(emptyBodyInlineStyle)
2929
});
3030

31-
test("There should be two p tags", () => {
31+
test("There should be two <p> tags", () => {
3232
expect(p.length).toBe(2)
3333
});
34-
test("Both p tags should have a class name 'b-blue'", () => {
34+
test("Both <p> tags should have a class name 'b-blue'", () => {
3535
p.forEach(e=>{
3636
let eClass = e.getAttribute("class");
3737
expect(eClass).toBe("b-blue")

0 commit comments

Comments
 (0)