Comparing version 1.0.0 to 1.1.0
@@ -23,5 +23,5 @@ 'use strict'; | ||
return ['*:not(', selector, ')'].join(''); | ||
}).join(','); | ||
}).join(' '); | ||
}; | ||
module.exports = deselect; |
{ | ||
"name": "deselect", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Returns a selector that excludes all passed selectors", | ||
@@ -5,0 +5,0 @@ "author": "Tyler Peterson <tylerjpeterson@gmail.com>", |
@@ -6,2 +6,3 @@ # deselect | ||
## Installation | ||
@@ -32,3 +33,2 @@ | ||
// returns *:not(p),*:not(a),*:not(h2) | ||
``` |
@@ -17,3 +17,3 @@ 'use strict'; | ||
it('should return selector excluding all passed selectors', function () { | ||
assert.equal(deselect(['p','a','h2']), '*:not(p),*:not(a),*:not(h2)'); | ||
assert.equal(deselect(['p','a','h2']), '*:not(p) *:not(a) *:not(h2)'); | ||
}); | ||
@@ -30,4 +30,4 @@ | ||
it('should split a string on commas', function () { | ||
assert.equal(deselect('p,a,h2'), '*:not(p),*:not(a),*:not(h2)'); | ||
assert.equal(deselect('p,a,h2'), '*:not(p) *:not(a) *:not(h2)'); | ||
}); | ||
}); |