Skip to content

Commit

Permalink
Fixing the incorrect value for the quote option
Browse files Browse the repository at this point in the history
  • Loading branch information
kizu committed Jan 8, 2014
1 parent 67e6bc2 commit b10f2f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/options/quotes.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ module.exports = {
* @returns {Object|undefined}
*/
setValue: function(value) {
delete this._value;

if (value === 'single' || value === 'double' ) {
this._value = value;
}
Expand Down
4 changes: 2 additions & 2 deletions test/options/quotes.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
var assert = require('assert');

describe('options/quotes', function() {
it.skip('Invalid String should not change quotes', function() {
this.comb.configure({ quotes: 'foobar' });
it('Invalid String should not change quotes', function() {
this.comb.configure({ quotes: 3 });
assert.equal(
this.comb.processString(
'a { content: "" }' +
Expand Down

0 comments on commit b10f2f3

Please sign in to comment.