From 8dce16d49f011577a6b891b70a3d6b6bdf09fbd7 Mon Sep 17 00:00:00 2001 From: thompsonplyler Date: Wed, 20 Apr 2022 11:20:05 -0400 Subject: [PATCH] - change test to permit background-color property --- test/index.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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", () => {