Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed Sep 22, 2023
1 parent f21371e commit 8d460d3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion spec/core_functions/color/lab/_util.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@function -real-channel($color, $channel) {
@if color.is-missing($color, $channel) {
@return null;
@return none;
} @else {
@return color.channel($color, $channel);
}
Expand Down
20 changes: 10 additions & 10 deletions spec/core_functions/color/lab/alpha.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

<===> transparent/output.css
a {
value: lab(1% 2 3 / 0);
channels: 1% 2 3 / 0;
value: lab(0% 255 127 / 0);
channels: 0% 255 127 / 0;
}

<===>
Expand Down Expand Up @@ -71,11 +71,11 @@ a {

<===>
================================================================================
<===> none/slash/c/input.scss
<===> none/slash/b/input.scss
@use 'core_functions/color/lab/util';
@include util.inspect(lab(1% 2 none / 0.4));

<===> none/slash/c/output.css
<===> none/slash/b/output.css
a {
value: lab(1% 2 none / 0.4);
channels: 1% 2 none / 0.4;
Expand All @@ -95,24 +95,24 @@ a {

<===>
================================================================================
<===> none/slash/c_and_alpha/input.scss
<===> none/slash/b_and_alpha/input.scss
@use 'core_functions/color/lab/util';
@include util.inspect(lab(1% 2 none / none));

<===> none/slash/c_and_alpha/output.css
<===> none/slash/b_and_alpha/output.css
a {
value: lab(1% 2 none / none);
channels: 1% 2 none / none;
}

<===>
================================================================================
<===> none/slash_list/c/input.scss
<===> none/slash_list/b/input.scss
@use 'sass:list';
@use 'core_functions/color/lab/util';
@include util.inspect(lab(list.slash(1% 2 none, 0.4)));

<===> none/slash_list/c/output.css
<===> none/slash_list/b/output.css
a {
value: lab(1% 2 none / 0.4);
channels: 1% 2 none / 0.4;
Expand All @@ -133,12 +133,12 @@ a {

<===>
================================================================================
<===> none/slash_list/c_and_alpha/input.scss
<===> none/slash_list/b_and_alpha/input.scss
@use 'sass:list';
@use 'core_functions/color/lab/util';
@include util.inspect(lab(list.slash(1% 2 none, none)));

<===> none/slash_list/c_and_alpha/output.css
<===> none/slash_list/b_and_alpha/output.css
a {
value: lab(1% 2 none / none);
channels: 1% 2 none / none;
Expand Down
2 changes: 1 addition & 1 deletion spec/core_functions/color/lab/no_alpha.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ a {
@use 'core_functions/color/lab/util';
@include util.inspect(lab(1% 126 300));

<===> unitless/ab/outside_range/output.css
<===> unitless/ab/above_range/output.css
a {
value: lab(1% 126 300);
channels: 1% 126 300;
Expand Down

0 comments on commit 8d460d3

Please sign in to comment.