has-pseudo-element
Advanced tools
Comparing version 3.3.0 to 3.3.1
@@ -5,3 +5,3 @@ { | ||
"author": "John Otander", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"main": "index.js", | ||
@@ -30,3 +30,3 @@ "directories": { | ||
}, | ||
"gitHead": "5604528037164f4b8eb81e8a5215c433c9814407" | ||
"gitHead": "3bd524dafcbebcedd46207d13baac80d022cfdd0" | ||
} |
@@ -16,7 +16,7 @@ # has-pseudo-element | ||
```javascript | ||
var hasPseudoElement = require('has-pseudo-element'); | ||
var hasPseudoElement = require('has-pseudo-element') | ||
hasPseudoElement('.some-selector:after'); // => true | ||
hasPseudoElement('.some-selector::after'); // => true | ||
hasPseudoElement('.some-selector'); // => false | ||
hasPseudoElement('.some-selector:after') // => true | ||
hasPseudoElement('.some-selector::after') // => true | ||
hasPseudoElement('.some-selector') // => false | ||
``` | ||
@@ -23,0 +23,0 @@ |
@@ -1,3 +0,3 @@ | ||
var assert = require('assert'); | ||
var hasPseudoElement = require('..'); | ||
var assert = require('assert') | ||
var hasPseudoElement = require('..') | ||
@@ -14,22 +14,18 @@ var pseudoElements = [ | ||
'div::backdrop' | ||
]; | ||
] | ||
var noPseudoElements = [ | ||
'.foo-bar', | ||
'.foo-bar:first-child' | ||
]; | ||
var noPseudoElements = ['.foo-bar', '.foo-bar:first-child'] | ||
describe('has-pseudo-element', function() { | ||
it('should return true when there is a pseudo element', function() { | ||
pseudoElements.forEach(function(pseudoElement) { | ||
assert.ok(hasPseudoElement(pseudoElement)); | ||
}); | ||
}); | ||
assert.ok(hasPseudoElement(pseudoElement)) | ||
}) | ||
}) | ||
it('should return false when there is no pseudo element', function() { | ||
noPseudoElements.forEach(function(noPseudoElement) { | ||
assert.ok(!hasPseudoElement(noPseudoElement)); | ||
}); | ||
}); | ||
}); | ||
assert.ok(!hasPseudoElement(noPseudoElement)) | ||
}) | ||
}) | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3958
38