@@ -4,37 +4,48 @@ import scss from "postcss-scss"
44import sugarss from "sugarss"
55
66// internal tooling
7- import compareFixtures from "./helpers/compare-fixtures"
8- import compareFixturesExt from "./helpers/compare-fixtures-ext"
7+ import checkFixture from "./helpers/check-fixture"
98
10- test ( "should process custom syntax" , t => {
11- return compareFixtures ( t , "scss- syntax" , null , { syntax : scss } )
9+ test ( "should process custom syntax" , checkFixture , "scss-syntax" , null , {
10+ syntax : scss ,
1211} )
1312
14- test ( "should process custom syntax by parser" , t => {
15- return compareFixtures ( t , "scss-parser" , null , { parser : scss } )
16- } )
17-
18- test ( ".css importing .sss should work" , t => {
19- return compareFixtures ( t , "import-sss" )
20- } )
21-
22- test ( ".sss importing .sss should work" , t => {
23- return compareFixturesExt ( t , "sugar" , ".sss" , null , { parser : sugarss } )
24- } )
25-
26- test ( ".sss importing .css should work" , t => {
27- return compareFixturesExt ( t , "sugar-import-css" , ".sss" , null , {
28- parser : sugarss ,
29- } )
30- } )
31-
32- test ( ".css importing .sss importing .css should work" , t => {
33- return compareFixtures ( t , "import-sss-css" )
34- } )
35-
36- test ( ".sss importing .css importing .sss should work" , t => {
37- return compareFixturesExt ( t , "import-css-sss" , ".sss" , null , {
38- parser : sugarss ,
39- } )
40- } )
13+ test (
14+ "should process custom syntax by parser" ,
15+ checkFixture ,
16+ "scss-parser" ,
17+ null ,
18+ { parser : scss }
19+ )
20+
21+ test ( ".css importing .sss should work" , checkFixture , "import-sss" )
22+
23+ test (
24+ ".sss importing .sss should work" ,
25+ checkFixture ,
26+ { name : "sugar" , ext : ".sss" } ,
27+ null ,
28+ { parser : sugarss }
29+ )
30+
31+ test (
32+ ".sss importing .css should work" ,
33+ checkFixture ,
34+ { name : "sugar-import-css" , ext : ".sss" } ,
35+ null ,
36+ { parser : sugarss }
37+ )
38+
39+ test (
40+ ".css importing .sss importing .css should work" ,
41+ checkFixture ,
42+ "import-sss-css"
43+ )
44+
45+ test (
46+ ".sss importing .css importing .sss should work" ,
47+ checkFixture ,
48+ { name : "import-css-sss" , ext : ".sss" } ,
49+ null ,
50+ { parser : sugarss }
51+ )
0 commit comments