Skip to content

Commit fa747e6

Browse files
committed
Less: Add test for csscomb/csscomb#225
1 parent a074488 commit fa747e6

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

test/less.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,5 +309,23 @@ describe('LESS', function() {
309309
' color: tomato;\n' +
310310
' }';
311311
});
312+
313+
it('Should sort included mixins. Test 3', function() {
314+
config = { 'sort-order': [
315+
['$include', 'border', 'color']
316+
] };
317+
318+
input = '.foo {\n' +
319+
' color: #0f0;\n' +
320+
' border: 1px solid #f00;\n' +
321+
' .linear-gradient(#fff; #000);\n' +
322+
'}';
323+
324+
expected = '.foo {\n' +
325+
' .linear-gradient(#fff; #000);\n' +
326+
' border: 1px solid #f00;\n' +
327+
' color: #0f0;\n' +
328+
'}';
329+
});
312330
});
313331
});

0 commit comments

Comments
 (0)