From 4a52d0bf7e60fa681da001af20356807468045d8 Mon Sep 17 00:00:00 2001 From: Radi Totev Date: Mon, 23 May 2022 13:42:33 +0100 Subject: [PATCH] fix(curriculum): 'Adjust the Tone of a Color' test assertion (#46018) * Fix: 'Adjust the Tone of a Color' test assrtion * Clarify use of rgb instead of hsl value in test --- .../applied-visual-design/adjust-the-tone-of-a-color.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/adjust-the-tone-of-a-color.md b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/adjust-the-tone-of-a-color.md index b8ea5902462..fdd9a21bfc4 100644 --- a/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/adjust-the-tone-of-a-color.md +++ b/curriculum/challenges/english/01-responsive-web-design/applied-visual-design/adjust-the-tone-of-a-color.md @@ -20,9 +20,11 @@ All elements have a default `background-color` of `transparent`. Our `nav` eleme The `nav` element should have a `background-color` of the adjusted cyan tone using the `hsl()` property. ```js -assert( - code.match(/nav\s*?{\s*?background-color:\s*?hsl\(180,\s*?80%,\s*?25%\)/gi) -); +// Computed style of hsl(180, 80%, 25%) results in rgb(13,115,115) +assert.equal( + new __helpers.CSSHelp(document).getStyle('nav').getPropVal('background-color', true), + 'rgb(13,115,115)' +) ``` # --seed--