Skip to content

Commit a848aa3

Browse files
committed
Gonzales 3.0: Update tab-size option
1 parent 978350d commit a848aa3

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

lib/options/tab-size.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ module.exports = {
1010
/**
1111
* Processes tree node.
1212
*
13-
* @param {String} nodeType
1413
* @param {node} node
1514
*/
16-
process: function(nodeType, node) {
17-
if (nodeType !== 's') return;
18-
node[0] = node[0].replace(/\t/, this.getValue('tab-size'));
15+
process: function(node) {
16+
if (!node.is('s')) return;
17+
node.content = node.content.replace(/\t/, this.getValue('tab-size'));
1918
}
2019
};

test/options/tab-size/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
describe.skip('options/tab-size:', function() {
1+
describe('options/tab-size:', function() {
22
it('Test 1: String value => should not change anything', function() {
33
this.comb.configure({ 'tab-size': ' ' });
44
this.shouldBeEqual('test.css');

0 commit comments

Comments
 (0)