diff --git a/test/cli/formatters/checkstyle.spec.js b/test/cli/formatters/checkstyle.spec.js
index 67c231df5..256117bf2 100644
--- a/test/cli/formatters/checkstyle.spec.js
+++ b/test/cli/formatters/checkstyle.spec.js
@@ -11,10 +11,11 @@ describe('CLI', () => {
.readFileSync(path.resolve(__dirname, 'checkstyle.xml'), 'utf8')
.replace(
'{{path}}',
- path.resolve(__dirname, '../../html/executable.html')
+ path
+ .resolve(__dirname, 'example.html')
+ // TODO: we need to fix windows backslash
+ .replace('\\example', '/example')
)
- // TODO: we need to fix windows backslash
- .replace('html\\executable.html', 'html/executable.html')
const expectedParts = expected.split('\n')
@@ -22,7 +23,7 @@ describe('CLI', () => {
[
'node',
path.resolve(__dirname, '../../../bin/htmlhint'),
- path.resolve(__dirname, '../../html/executable.html'),
+ path.resolve(__dirname, 'example.html'),
'--format',
'checkstyle',
].join(' '),
diff --git a/test/cli/formatters/checkstyle.xml b/test/cli/formatters/checkstyle.xml
index 3813d6383..aa96f0fc7 100644
--- a/test/cli/formatters/checkstyle.xml
+++ b/test/cli/formatters/checkstyle.xml
@@ -7,91 +7,19 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/cli/formatters/example.html b/test/cli/formatters/example.html
new file mode 100644
index 000000000..0a840d154
--- /dev/null
+++ b/test/cli/formatters/example.html
@@ -0,0 +1,29 @@
+
+
+
+ Number# | File Name | Line Number | Message |
---|
1 | {{path}} | 8 | The value of attribute [ bad ] must be in double quotes. |
2 | {{path}} | 8 | The value of attribute [ bad ] must be in double quotes. |
3 | {{path}} | 8 | Duplicate of attribute name [ bad ] was found. |
4 | {{path}} | 9 | The value of attribute [ bad ] must be in double quotes. |
5 | {{path}} | 9 | The value of attribute [ bad ] must be in double quotes. |
6 | {{path}} | 9 | Duplicate of attribute name [ bad ] was found. |
7 | {{path}} | 10 | The value of attribute [ bad ] must be in double quotes. |
8 | {{path}} | 10 | The value of attribute [ bad ] must be in double quotes. |
9 | {{path}} | 10 | Duplicate of attribute name [ bad ] was found. |
10 | {{path}} | 11 | The value of attribute [ bad ] must be in double quotes. |
11 | {{path}} | 11 | The value of attribute [ bad ] must be in double quotes. |
12 | {{path}} | 11 | Duplicate of attribute name [ bad ] was found. |
13 | {{path}} | 12 | The value of attribute [ bad ] must be in double quotes. |
14 | {{path}} | 12 | The value of attribute [ bad ] must be in double quotes. |
15 | {{path}} | 12 | Duplicate of attribute name [ bad ] was found. |
16 | {{path}} | 13 | The value of attribute [ bad ] must be in double quotes. |
17 | {{path}} | 13 | The value of attribute [ bad ] must be in double quotes. |
18 | {{path}} | 13 | Duplicate of attribute name [ bad ] was found. |
19 | {{path}} | 14 | The value of attribute [ bad ] must be in double quotes. |
20 | {{path}} | 14 | The value of attribute [ bad ] must be in double quotes. |
21 | {{path}} | 14 | Duplicate of attribute name [ bad ] was found. |
22 | {{path}} | 15 | The value of attribute [ bad ] must be in double quotes. |
23 | {{path}} | 15 | The value of attribute [ bad ] must be in double quotes. |
24 | {{path}} | 15 | Duplicate of attribute name [ bad ] was found. |
25 | {{path}} | 16 | The value of attribute [ bad ] must be in double quotes. |
26 | {{path}} | 16 | The value of attribute [ bad ] must be in double quotes. |
27 | {{path}} | 16 | Duplicate of attribute name [ bad ] was found. |
28 | {{path}} | 17 | The value of attribute [ bad ] must be in double quotes. |
29 | {{path}} | 17 | The value of attribute [ bad ] must be in double quotes. |
30 | {{path}} | 17 | Duplicate of attribute name [ bad ] was found. |
31 | {{path}} | 18 | The value of attribute [ bad ] must be in double quotes. |
32 | {{path}} | 18 | The value of attribute [ bad ] must be in double quotes. |
33 | {{path}} | 18 | Duplicate of attribute name [ bad ] was found. |
34 | {{path}} | 19 | The value of attribute [ bad ] must be in double quotes. |
35 | {{path}} | 19 | The value of attribute [ bad ] must be in double quotes. |
36 | {{path}} | 19 | Duplicate of attribute name [ bad ] was found. |
37 | {{path}} | 20 | The value of attribute [ bad ] must be in double quotes. |
38 | {{path}} | 20 | The value of attribute [ bad ] must be in double quotes. |
39 | {{path}} | 20 | Duplicate of attribute name [ bad ] was found. |
40 | {{path}} | 21 | The value of attribute [ bad ] must be in double quotes. |
41 | {{path}} | 21 | The value of attribute [ bad ] must be in double quotes. |
42 | {{path}} | 21 | Duplicate of attribute name [ bad ] was found. |
43 | {{path}} | 22 | The value of attribute [ bad ] must be in double quotes. |
44 | {{path}} | 22 | The value of attribute [ bad ] must be in double quotes. |
45 | {{path}} | 22 | Duplicate of attribute name [ bad ] was found. |
46 | {{path}} | 23 | The value of attribute [ bad ] must be in double quotes. |
47 | {{path}} | 23 | The value of attribute [ bad ] must be in double quotes. |
48 | {{path}} | 23 | Duplicate of attribute name [ bad ] was found. |
49 | {{path}} | 24 | The value of attribute [ bad ] must be in double quotes. |
50 | {{path}} | 24 | The value of attribute [ bad ] must be in double quotes. |
51 | {{path}} | 24 | Duplicate of attribute name [ bad ] was found. |
52 | {{path}} | 25 | Tag must be paired, no start tag: [ ] |
53 | {{path}} | 26 | Special characters must be escaped : [ < ]. |
54 | {{path}} | 26 | Special characters must be escaped : [ > ]. |
55 | {{path}} | 28 | Tag must be paired, no start tag: [ ] |
56 | {{path}} | 29 | Tag must be paired, no start tag: [ ] |
57 | {{path}} | 30 | Tag must be paired, no start tag: [ ] |
58 | {{path}} | 31 | Tag must be paired, no start tag: [ ] |
59 | {{path}} | 32 | Tag must be paired, no start tag: [ ] |
60 | {{path}} | 38 | The value of attribute [ class ] must be in double quotes. |
61 | {{path}} | 38 | The value of attribute [ what ] must be in double quotes. |
62 | {{path}} | 38 | The value of attribute [ something ] must be in double quotes. |
63 | {{path}} | 44 | Tag must be paired, no start tag: [ ] |
64 | {{path}} | 50 | The value of attribute [ class ] must be in double quotes. |
65 | {{path}} | 50 | The value of attribute [ what ] must be in double quotes. |
66 | {{path}} | 50 | The value of attribute [ something ] must be in double quotes. |
67 | {{path}} | 56 | Tag must be paired, no start tag: [ ] |
68 | {{path}} | 62 | The value of attribute [ class ] must be in double quotes. |
69 | {{path}} | 62 | The value of attribute [ what ] must be in double quotes. |
70 | {{path}} | 62 | The value of attribute [ something ] must be in double quotes. |
71 | {{path}} | 68 | Tag must be paired, no start tag: [ ] |
72 | {{path}} | 74 | The value of attribute [ class ] must be in double quotes. |
73 | {{path}} | 74 | The value of attribute [ what ] must be in double quotes. |
74 | {{path}} | 74 | The value of attribute [ something ] must be in double quotes. |
75 | {{path}} | 80 | Tag must be paired, no start tag: [ ] |
76 | {{path}} | 81 | Tag must be paired, no start tag: [ ] |
77 | {{path}} | 82 | Tag must be paired, no start tag: [ ] |
78 | {{path}} | 83 | Tag must be paired, no start tag: [ ] |
79 | {{path}} | 84 | Tag must be paired, no start tag: [ ] |
80 | {{path}} | 85 | Tag must be paired, no start tag: [ ] |
81 | {{path}} | 86 | Tag must be paired, no start tag: [ ] |
82 | {{path}} | 87 | Tag must be paired, no start tag: [ ] |
83 | {{path}} | 88 | Tag must be paired, no start tag: [ ] |
84 | {{path}} | 89 | Tag must be paired, no start tag: [ ] |
85 | {{path}} | 90 | Tag must be paired, no start tag: [ ] |
86 | {{path}} | 91 | Tag must be paired, no start tag: [ ] |
87 | {{path}} | 92 | Tag must be paired, no start tag: [ ] |
88 | {{path}} | 93 | Tag must be paired, no start tag: [ ] |
89 | {{path}} | 94 | Tag must be paired, no start tag: [ ] |
90 | {{path}} | 95 | Tag must be paired, no start tag: [ ] |
91 | {{path}} | 96 | Tag must be paired, no start tag: [ ] |
92 | {{path}} | 97 | Tag must be paired, no start tag: [ ] |
+Number# | File Name | Line Number | Message |
---|
1 | {{path}} | 8 | The value of attribute [ bad ] must be in double quotes. |
2 | {{path}} | 8 | The value of attribute [ bad ] must be in double quotes. |
3 | {{path}} | 8 | Duplicate of attribute name [ bad ] was found. |
4 | {{path}} | 9 | The value of attribute [ bad ] must be in double quotes. |
5 | {{path}} | 9 | The value of attribute [ bad ] must be in double quotes. |
6 | {{path}} | 9 | Duplicate of attribute name [ bad ] was found. |
7 | {{path}} | 10 | Tag must be paired, no start tag: [ ] |
8 | {{path}} | 11 | Special characters must be escaped : [ < ]. |
9 | {{path}} | 11 | Special characters must be escaped : [ > ]. |
10 | {{path}} | 13 | Tag must be paired, no start tag: [ ] |
11 | {{path}} | 14 | Tag must be paired, no start tag: [ ] |
12 | {{path}} | 15 | Tag must be paired, no start tag: [ ] |
13 | {{path}} | 16 | Tag must be paired, no start tag: [ ] |
14 | {{path}} | 17 | Tag must be paired, no start tag: [ ] |
15 | {{path}} | 21 | The value of attribute [ class ] must be in double quotes. |
16 | {{path}} | 21 | The value of attribute [ what ] must be in double quotes. |
17 | {{path}} | 21 | The value of attribute [ something ] must be in double quotes. |
18 | {{path}} | 25 | Tag must be paired, no start tag: [ ] |
19 | {{path}} | 26 | Tag must be paired, no start tag: [ ] |
20 | {{path}} | 27 | Tag must be paired, no start tag: [ ] |
diff --git a/test/cli/formatters/html.spec.js b/test/cli/formatters/html.spec.js
index 97baec8e7..519b77883 100644
--- a/test/cli/formatters/html.spec.js
+++ b/test/cli/formatters/html.spec.js
@@ -12,9 +12,9 @@ describe('CLI', () => {
.replace(
/\{\{path\}\}/g,
path
- .resolve(__dirname, '../../html/executable.html')
+ .resolve(__dirname, 'example.html')
// TODO: we need to fix windows backslash
- .replace('html\\executable.html', 'html/executable.html')
+ .replace('\\example', '/example')
)
const expectedParts = expected.split('\n')
@@ -23,7 +23,7 @@ describe('CLI', () => {
[
'node',
path.resolve(__dirname, '../../../bin/htmlhint'),
- path.resolve(__dirname, '../../html/executable.html'),
+ path.resolve(__dirname, 'example.html'),
'--format',
'html',
].join(' '),
diff --git a/test/cli/formatters/json.json b/test/cli/formatters/json.json
index 313fd694f..8744fe391 100644
--- a/test/cli/formatters/json.json
+++ b/test/cli/formatters/json.json
@@ -80,597 +80,12 @@
"link": "https://github.com/thedaviddias/HTMLHint/wiki/attr-no-duplication"
}
},
- {
- "type": "error",
- "message": "The value of attribute [ bad ] must be in double quotes.",
- "raw": " bad=''",
- "evidence": "