Skip to content

Commit 09cd940

Browse files
committed
Add scope tests from leafo#365
1 parent 3599981 commit 09cd940

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

tests/inputs/functions.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,22 @@ div {
9595
p{
9696
color: test("a", "s", "d", "f");
9797
}
98+
99+
@function test-function() {
100+
$str: 'test-function';
101+
@return $str;
102+
}
103+
104+
@mixin test-mixin {
105+
$str: 'test-mixin';
106+
display: $str;
107+
$new-bp: test-function();
108+
display: $str;
109+
}
110+
111+
$str: 'global';
112+
.test{
113+
display: $str;
114+
@include test-mixin;
115+
display: $str;
116+
}

tests/outputs/functions.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,9 @@ div {
2626

2727
p {
2828
color: arglist; }
29+
30+
.test {
31+
display: 'global';
32+
display: 'test-mixin';
33+
display: 'test-mixin';
34+
display: 'global'; }

tests/outputs_numbered/functions.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,9 @@ div {
2828
/* line 95, inputs/functions.scss */
2929
p {
3030
color: arglist; }
31+
/* line 112, inputs/functions.scss */
32+
.test {
33+
display: 'global';
34+
display: 'test-mixin';
35+
display: 'test-mixin';
36+
display: 'global'; }

0 commit comments

Comments
 (0)