Skip to content

Commit 3685ec0

Browse files
authored
Merge pull request 4GeeksAcademy#130 from Khrisefzm/bug-exercise-5
Bug exercise 5
2 parents baefe36 + 6b19608 commit 3685ec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/05-Specificity/tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe("All the styles should be applied", function () {
4343
let cssArray = document.styleSheets[0].cssRules;
4444
let orangeHoverSelector = "";
4545
for (let i = 0; i < cssArray.length; i++) {
46-
if (cssArray[i].selectorText === "#thirditem" && cssArray[i].style._importants.background === "important" || cssArray[i].style._importants["background-color"] === "important") {
46+
if (cssArray[i].selectorText.endsWith("#thirditem") && cssArray[i].style._importants.background === "important" || cssArray[i].style._importants["background-color"] === "important") {
4747
orangeHoverSelector = cssArray[i].style.background || cssArray[i].style["background-color"];
4848
}
4949
}

0 commit comments

Comments
 (0)