Skip to content

Commit 29d54d8

Browse files
authored
Update tests.js
1 parent 270d8a3 commit 29d54d8

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

exercises/04.1-Combined-Rules/tests.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -55,23 +55,6 @@ describe("All the styles should be applied", ()=> {
5555
expect(orangeHoverSelector).toBe('50px');
5656
});
5757

58-
test("The background-size should be 'contain'", ()=> {
59-
document.querySelector(
60-
"head"
61-
).innerHTML = `<style>${css.toString()}</style>`;
62-
63-
let cssArray = document.styleSheets[0].cssRules;
64-
let orangeHoverSelector = "";
65-
66-
for (let i = 0; i < cssArray.length; i++) {
67-
if (cssArray[i].selectorText === ".myBox") {
68-
orangeHoverSelector = cssArray[i].style['background-size'];
69-
}
70-
}
71-
72-
expect(orangeHoverSelector).toBe('contain');
73-
});
74-
7558
test("The background should include the shorthand property", ()=> {
7659
document.querySelector(
7760
"head"

0 commit comments

Comments
 (0)