Skip to content

Commit 1364bd5

Browse files
authored
Remove stylelint from testcase (#39)
1 parent 10b59cc commit 1364bd5

File tree

3 files changed

+2
-80
lines changed

3 files changed

+2
-80
lines changed

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"codecov": "^3.0.0",
7474
"eslint": "^4.19.1",
7575
"eslint-config-standard": "^11.0.0",
76-
"eslint-plugin-import": "^2.9.0",
76+
"eslint-plugin-import": "^2.10.0",
7777
"eslint-plugin-node": "^6.0.1",
7878
"eslint-plugin-promise": "^3.7.0",
7979
"eslint-plugin-standard": "^3.0.1",
@@ -84,10 +84,8 @@
8484
"postcss-parser-tests": "^6.2.1",
8585
"postcss-safe-parser": "^3.0.1",
8686
"postcss-sass": "^0.3.0",
87-
"postcss-scss": "^1.0.4",
87+
"postcss-scss": "^1.0.5",
8888
"strip-bom": "^3.0.0",
89-
"stylefmt": "^6.0.0",
90-
"stylelint": "^9.1.3",
9189
"sugarss": "^1.0.1"
9290
}
9391
}

test/html.js

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
const expect = require("chai").expect;
44
const autoprefixer = require("autoprefixer");
5-
const stylelint = require("stylelint");
6-
const stylefmt = require("stylefmt");
75
const postcss = require("postcss");
86
const syntax = require("../");
97

@@ -54,44 +52,6 @@ describe("html tests", () => {
5452
].join("\n"));
5553
});
5654
});
57-
it("stylelint", () => {
58-
return postcss([
59-
stylelint({
60-
config: {
61-
rules: {
62-
indentation: 2,
63-
"font-family-no-duplicate-names": true,
64-
},
65-
},
66-
}),
67-
]).process([
68-
"<html>",
69-
"<head>",
70-
"<style>",
71-
"a {",
72-
"\tdisplay: flex;",
73-
"}",
74-
"</style>",
75-
"</head>",
76-
"<body>",
77-
"<div style=\"font-family: serif, serif;\">",
78-
"</div>",
79-
"</body>",
80-
"</html>",
81-
].join("\n"), {
82-
syntax,
83-
from: "stylelint.html",
84-
}).then(result => {
85-
const errors = result.messages;
86-
expect(errors).to.have.lengthOf(2);
87-
expect(errors[0].rule).to.equal("indentation");
88-
expect(errors[0].line).to.equal(5);
89-
expect(errors[0].column).to.equal(2);
90-
expect(errors[1].rule).to.equal("font-family-no-duplicate-names");
91-
expect(errors[1].line).to.equal(10);
92-
expect(errors[1].column).to.equal(33);
93-
});
94-
});
9555

9656
it("less", () => {
9757
const less = [
@@ -114,7 +74,6 @@ describe("html tests", () => {
11474
expect(root.nodes).to.have.lengthOf(2);
11575
expect(root.toString()).equal(less);
11676
},
117-
stylefmt,
11877
]).process(less, {
11978
syntax: syntax(),
12079
from: "less.html",
@@ -173,7 +132,6 @@ describe("html tests", () => {
173132
expect(root.nodes).to.have.lengthOf(2);
174133
expect(root.toString()).equal(less);
175134
},
176-
stylefmt,
177135
]).process(less, {
178136
syntax: syntax(),
179137
from: "less.html",

test/markdown.js

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
"use strict";
22

33
const expect = require("chai").expect;
4-
const stylefmt = require("stylefmt");
54
const postcss = require("postcss");
65
const syntax = require("../");
76

@@ -92,37 +91,4 @@ describe("markdown tests", () => {
9291
expect(result.content).to.equal("# Hi\n");
9392
});
9493
});
95-
96-
it("stylefmt", () => {
97-
const source = [
98-
"title: Something Special",
99-
"```css",
100-
" .foo {",
101-
" color: pink;",
102-
" }",
103-
" .bar {}",
104-
"```",
105-
"And the end.",
106-
].join("\n");
107-
const code = [
108-
"title: Something Special",
109-
"```css",
110-
".foo {",
111-
"\tcolor: pink;",
112-
"}",
113-
"",
114-
".bar {",
115-
"}",
116-
"```",
117-
"And the end.",
118-
].join("\n");
119-
return postcss([
120-
stylefmt,
121-
]).process(source, {
122-
syntax,
123-
from: "stylefmt.md",
124-
}).then(result => {
125-
expect(result.content).to.equal(code);
126-
});
127-
});
12894
});

0 commit comments

Comments
 (0)