1
0
mirror of https://github.com/thangisme/notes.git synced 2024-06-16 12:25:34 +00:00
notes/node_modules/stylelint-selector-no-utility/test/index.js
Patrick Marsceill b7b0d0d7bf
Initial commit
2017-03-09 13:16:08 -05:00

19 lines
449 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; }" }
]
})