1
1
mirror of https://github.com/primer/css.git synced 2024-12-21 05:01:45 +03:00
css/tools/stylelint-selector-no-utility/test/index.js
2017-10-09 13:04:03 -07:00

31 lines
509 B
JavaScript

var testRule = require("stylelint-test-rule-tape")
var rule = require("..")
testRule(rule.rule, {
ruleName: rule.ruleName,
config: true,
skipBasicChecks: true,
accept: [
{
code: "a { }"
}
],
reject: [
{
code: ".m-0 { color: #fff; }"
},
{
code: ".m-0:hover { color: #fff; }"
},
{
code: ".m-2, .foo { color: #fff; }"
},
{
code: ".m-2[type=button] { color: #fff; }"
},
{
code: ".foo.m-0 { color: #fff; }"
}
]
})