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
This commit is contained in:
Radi Totev
2022-05-23 07:42:33 -05:00
committed by GitHub
parent 3bf7c6023b
commit 4a52d0bf7e
@@ -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--