Skip to content

Commit 5b1f0c7

Browse files
committed
added a condition to the test to make it more flexible
1 parent 8f08c05 commit 5b1f0c7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

exercises/07-Very-Specific-Rules/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** Insert your code here **/
22

33
/*********** READ ONLY BLOCK ******
4-
You CAN NOT UPDATE anything from here on,
4+
You CANNOT UPDATE anything from here on,
55
only add lines of code on top of this lines
66
**/
77

exercises/07-Very-Specific-Rules/tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe("All the styles should be applied", function () {
2727
let orangeHoverSelector="";
2828
for (let i=0; i<cssArray.length; i++) {
2929

30-
if (cssArray[i].selectorText==="ul li") {
30+
if (cssArray[i].selectorText==="ul li" | cssArray[i].selectorText==="ul > li") {
3131
orangeHoverSelector=cssArray[i].style.color;
3232

3333
}
@@ -44,7 +44,7 @@ describe("All the styles should be applied", function () {
4444

4545
let orangeHoverSelector="";
4646
for (let i=0; i<cssArray.length; i++) {
47-
if (cssArray[i].selectorText==="ol li:nth-child(2)") {
47+
if (cssArray[i].selectorText==="ol li:nth-child(2)" | cssArray[i].selectorText==="ol > li:nth-child(2)" ) {
4848
orangeHoverSelector=cssArray[i].style['background-color'];
4949

5050
}

learn.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"video-solutions": true,
1313
"graded": true,
1414

15-
"disableGrading": true,
15+
"disableGrading": false,
1616
"editor": {
1717
"version": "1.0.73"
1818
}

0 commit comments

Comments
 (0)