Skip to content

Commit 5aa8916

Browse files
Update tests.js
1 parent ba2b37d commit 5aa8916

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ describe("All the styles should be applied", ()=>{
7070

7171
}
7272

73-
} expect(background && background.toLowerCase() === "yellow" || backgroundColor.toLowerCase() === "yellow").toBeTruthy();
73+
} expect((background && background.toLowerCase() === "yellow") || (backgroundColor && backgroundColor.toLowerCase() === "yellow")).toBeTruthy();
7474
})
7575

7676
test("Write all your rules above the existing code", ()=>{

0 commit comments

Comments
 (0)