We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
tab-size
1 parent 978350d commit a848aa3Copy full SHA for a848aa3
2 files changed
lib/options/tab-size.js
@@ -10,11 +10,10 @@ module.exports = {
10
/**
11
* Processes tree node.
12
*
13
- * @param {String} nodeType
14
* @param {node} node
15
*/
16
- process: function(nodeType, node) {
17
- if (nodeType !== 's') return;
18
- node[0] = node[0].replace(/\t/, this.getValue('tab-size'));
+ process: function(node) {
+ if (!node.is('s')) return;
+ node.content = node.content.replace(/\t/, this.getValue('tab-size'));
19
}
20
};
test/options/tab-size/test.js
@@ -1,4 +1,4 @@
1
-describe.skip('options/tab-size:', function() {
+describe('options/tab-size:', function() {
2
it('Test 1: String value => should not change anything', function() {
3
this.comb.configure({ 'tab-size': ' ' });
4
this.shouldBeEqual('test.css');
0 commit comments