Skip to content

Commit 72ca2e8

Browse files
committed
Merge pull request #149 from kizu/issue-146
Fixing the incorrect value for the quote option
2 parents 8734c87 + b10f2f3 commit 72ca2e8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/options/quotes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ module.exports = {
77
* @returns {Object|undefined}
88
*/
99
setValue: function(value) {
10+
delete this._value;
11+
1012
if (value === 'single' || value === 'double' ) {
1113
this._value = value;
1214
}

test/options/quotes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
var assert = require('assert');
22

33
describe('options/quotes', function() {
4-
it.skip('Invalid String should not change quotes', function() {
5-
this.comb.configure({ quotes: 'foobar' });
4+
it('Invalid String should not change quotes', function() {
5+
this.comb.configure({ quotes: 3 });
66
assert.equal(
77
this.comb.processString(
88
'a { content: "" }' +

0 commit comments

Comments
 (0)