Skip to content

Commit

Permalink
additional tests for newlines between declaration + rule + declaration (
Browse files Browse the repository at this point in the history
#36)

closes #33
  • Loading branch information
bartveneman authored Feb 17, 2024
1 parent b2c17b1 commit 413ba3f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/rules.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,20 @@ test('formats nested rules with selectors starting with', () => {
assert.equal(actual, expected);
})

test('newlines between declarations, nested rules and more declarations', () => {
let actual = format(`/* test */ a { font: 0/0; & b { color: red; } color: green;}`);
let expected = `a {
font: 0/0;
& b {
color: red;
}
color: green;
}`;
assert.equal(actual, expected);
})

test("formats nested rules with a selector starting with &", () => {
let actual = format(`
selector {
Expand Down

0 comments on commit 413ba3f

Please sign in to comment.