Add tests for active state variant

This commit is contained in:
fedeTibaldo 2018-02-09 20:20:24 +01:00
parent e112b98d4e
commit 1f57fbfbaf
2 changed files with 34 additions and 7 deletions

View file

@ -16,7 +16,11 @@ const variantGenerators = {
const cloned = container.clone()
cloned.walkRules(rule => {
rule.selector = `${buildClassVariant(rule.selector, 'active', config.options.separator)}:active`
rule.selector = `${buildClassVariant(
rule.selector,
'active',
config.options.separator
)}:active`
})
container.before(cloned.nodes)