Skip to content

Commit ba2b37d

Browse files
Update tests.js
1 parent 92e54fb commit ba2b37d

File tree

1 file changed

+2
-2
lines changed
  • exercises/07-Very-Specific-Rules

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe("All the styles should be applied", ()=>{
5252
backgroundColor = backgroundColor.toLowerCase()
5353
}
5454

55-
} expect(background && background === 'green' || backgroundColor === 'green').toBeTruthy();
55+
} expect((background && background === 'green') || (backgroundColor && backgroundColor === 'green')).toBeTruthy();
5656
})
5757

5858
test("The odd rows of the table should have yellow background", ()=>{
@@ -95,4 +95,4 @@ describe("All the styles should be applied", ()=>{
9595
expect(title).toBeTruthy()
9696
})
9797

98-
});
98+
});

0 commit comments

Comments
 (0)