diff --git a/test/index.test.js b/test/index.test.js index 1ca969b3b..c1a71bea3 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -66,7 +66,7 @@ describe("index.css", () => { it("sets background to #00b3e6", () => { const rule = findRule(css.cssRules, "body"); const hint = "Missing background property for body"; - expect(rule.style["background"], hint).to.eq("#00b3e6"); + expect(rule.style["background"]|| rule.style["background-color"], hint).to.eq("#00b3e6"); }); it("has a rule for
tags", () => { @@ -95,7 +95,7 @@ describe("index.css", () => { it("sets
background to white", () => { const rule = findRule(css.cssRules, "div"); const hint = "Missing background property for div"; - expect(rule.style["background"], hint).to.eq("white"); + expect(rule.style["background"]|| rule.style["background-color"], hint).to.eq("white"); }); it("sets
padding to 30px", () => {