Skip to content

Commit b5db19b

Browse files
committed
Add test for user function that returns null
1 parent d2cfeb6 commit b5db19b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/ApiTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ public function testUserFunction()
3838
);
3939
}
4040

41+
public function testUserFunctionNull()
42+
{
43+
$this->scss->registerFunction('get-null', function ($args) {
44+
return Compiler::$null;
45+
});
46+
47+
$this->assertEquals(
48+
'',
49+
$this->compile('result: get-null();')
50+
);
51+
}
52+
4153
public function testUserFunctionKwargs()
4254
{
4355
$this->scss->registerFunction(

0 commit comments

Comments
 (0)