Skip to content

Commit

Permalink
Add an error output for channels with the wrong case, test missing
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Apr 24, 2024
1 parent d83b681 commit 6aa1a07
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/core_functions/color/channel/error.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ Error: $channel: Color red has no channel named hue.
a {b: color.channel(red, "RED")}

<===> channel/wrong_case/error
Error: $channel: Color red has no channel named RED.
,
2 | a {b: color.channel(red, "RED")}
| ^^^^^^^^^^^^^^^^^^^^^^^^^
'
input.scss 2:7 root stylesheet

<===>
================================================================================
Expand Down
9 changes: 9 additions & 0 deletions spec/core_functions/color/channel/missing.hrx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<===> input.scss
@use 'sass:color';
a {b: color.channel(rgb(255 none 255), "green")}

<===> output.css
a {
b: 0;
}

0 comments on commit 6aa1a07

Please sign in to comment.