add ignored scope tests for mixins and functions

This commit is contained in:
Connor Skees 2020-07-07 12:00:11 -04:00
parent 25862a5af8
commit 6faf30795e
2 changed files with 26 additions and 0 deletions

View File

@ -143,3 +143,16 @@ test!(
}",
"a {\n color: red;\n}\n"
);
test!(
#[ignore = "haven't yet figured out how scoping works"]
function_ignores_the_scope_with_which_it_was_defined,
"a {
$a: red;
@function foo() {
@return $a;
}
$a: green;
color: foo();
}",
"a {\n color: green;\n}\n"
);

View File

@ -364,3 +364,16 @@ error!(
}",
"Error: Missing argument $a."
);
test!(
#[ignore = "haven't yet figured out how scoping works"]
mixin_ignores_the_scope_with_which_it_was_defined,
"a {
$a: red;
@mixin foo {
color: $a;
}
$a: green;
@include foo;
}",
"a {\n color: green;\n}\n"
);