From 8f3b02a68368a62e09eea37296b9be5d74cd0930 Mon Sep 17 00:00:00 2001 From: Dario-DC <105294544+Dario-DC@users.noreply.github.com> Date: Tue, 14 Jan 2025 22:53:21 +0100 Subject: [PATCH] fix(curriculum): make test more permissive in house painting lab (#58122) --- .../lab-house-painting/66d6a7a3e1aa411e94bf2346.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/25-front-end-development/lab-house-painting/66d6a7a3e1aa411e94bf2346.md b/curriculum/challenges/english/25-front-end-development/lab-house-painting/66d6a7a3e1aa411e94bf2346.md index dd99827aa96..2eefab9b1a1 100644 --- a/curriculum/challenges/english/25-front-end-development/lab-house-painting/66d6a7a3e1aa411e94bf2346.md +++ b/curriculum/challenges/english/25-front-end-development/lab-house-painting/66d6a7a3e1aa411e94bf2346.md @@ -292,7 +292,7 @@ Your `#chimney` should have a `top` value that puts it at the top of your `#hous ```js const chimney = getComputedStyle(document.querySelector("#chimney")); -assert.equal(Number(chimney?.getPropertyValue("top").replace("px", "")), - Number(chimney?.getPropertyValue("height").replace("px", ""))); +assert.approximately(parseFloat(chimney?.getPropertyValue("top")), - parseFloat(chimney?.getPropertyValue("height")), 2); ``` Your `#chimney` should have a `z-index` that puts it behind the house.