We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1b97c0 commit 549087fCopy full SHA for 549087f
tests/ApiTest.php
@@ -17,6 +17,22 @@ public function testUserFunction() {
17
$this->compile("result: add-two(10, 20);"),
18
"result: 30;");
19
}
20
+
21
+ public function testImportMissing(){
22
+ $this->assertEquals(
23
+ $this->compile('@import "missing";'),
24
+ '@import "missing";');
25
+ }
26
27
+ public function testImportCustomCallback(){
28
+ $this->scss->addImportPath(function($path) {
29
+ return 'inputs/' . str_replace('.css','.scss',$path);
30
+ });
31
32
33
+ $this->compile('@import "variables.css";'),
34
+ trim(file_get_contents('outputs/variables.css')));
35
36
37
public function compile($str) {
38
return trim($this->scss->compile($str));
0 commit comments