Skip to content

Commit 2a8c7d7

Browse files
committed
Added more passing tests
1 parent 60ffa05 commit 2a8c7d7

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

test/always-semicolon.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,17 @@ describe('options/always-semicolon', function() {
119119
);
120120
});
121121

122+
123+
it('Should detect semicolon for last property. Test 6', function() {
124+
should_detect(
125+
['always-semicolon'],
126+
'a{\n border:0;\n}',
127+
{
128+
'always-semicolon': true
129+
}
130+
);
131+
});
132+
122133
it('Should not detect semicolon for last property if there are no properties', function() {
123134
should_detect(
124135
['always-semicolon'],

test/colon-space.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,4 +215,14 @@ describe('options/colon-space', function() {
215215
}
216216
);
217217
});
218+
219+
it('Should detect whitespace after colon', function() {
220+
should_detect(
221+
['colon-space'],
222+
'.input\n{\n position: relative;\n\n display: inline-block;\n\n width: 100%;\n}',
223+
{
224+
'colon-space': ['', ' ']
225+
}
226+
);
227+
});
218228
});

0 commit comments

Comments
 (0)