Skip to content

Commit e8084b0

Browse files
committed
Test clean-empty-lines with other *-empty-line-before option
1 parent e093d6b commit e8084b0

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

__tests__/test.js

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,46 @@ test(
44
`Should do nothing if config is undefined`,
55
() => runTest('empty-lines-preserve')
66
);
7+
8+
groupTest([
9+
{
10+
description: 'Empty lines should be cleaned before any other empty-line-before option',
11+
options: {
12+
'at-rule-nested-empty-line-before': true,
13+
'clean-empty-lines': true,
14+
},
15+
cases: [
16+
{
17+
fixture: `
18+
a {
19+
20+
21+
@mixin foo;
22+
23+
24+
}
25+
`,
26+
expected: `
27+
a {
28+
29+
@mixin foo;
30+
}
31+
`,
32+
},
33+
{
34+
fixture: `
35+
a {
36+
@mixin foo;
37+
38+
}
39+
`,
40+
expected: `
41+
a {
42+
43+
@mixin foo;
44+
}
45+
`,
46+
},
47+
],
48+
},
49+
]);

0 commit comments

Comments
 (0)