Permalink
Browse files

System test 005 (#2192)

* Minor docs corrections

* Add system test 005
  • Loading branch information...
1 parent 32a27cb commit 5405475f067e5955bf2b2f7c844bd18a0af9e29b @m-allanson m-allanson committed with davidtheclark Dec 14, 2016
@@ -27,7 +27,7 @@ Given:
{
"transform": ["/scale3d/", "/rotate3d/", "/translate3d/"],
"position": ["fixed"],
- "color": ["/^green/"]
+ "color": ["/^green/"],
"/^animation/": ["/ease/"]
}
```
@@ -26,15 +26,30 @@ The following patterns are considered warnings:
```css
#foop {}
+```
+
+```css
#foo-BAR {}
+```
+
+```css
div > .zing + #foo-BAR {}
```
The following patterns are *not* considered warnings:
```css
#foo-bar {}
+```
+
+```css
div > .zing + #foo-bar {}
+```
+
+```css
.foop {}
+```
+
+```css
[foo='bar'] {}
```
@@ -0,0 +1,14 @@
+/* @flow */
+"use strict"
+
+const systemTestUtils = require("../systemTestUtils")
+const stylelint = require("../../lib")
+
+it("005", () => {
+ return stylelint.lint({
+ files: [systemTestUtils.caseStylesheetGlob("005")],
+ configFile: systemTestUtils.caseConfig("005"),
+ }).then((output) => {
+ expect(systemTestUtils.prepResults(output.results)).toMatchSnapshot()
+ })
+})
Oops, something went wrong.

0 comments on commit 5405475

Please sign in to comment.