Skip to content

Commit 59d55ca

Browse files
author
Christopher Quadflieg
committed
test: update tests
1 parent 527c6e1 commit 59d55ca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+246
-212
lines changed

test/cli/formatters/checkstyle.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const path = require('path')
66

77
describe('CLI', () => {
88
describe('Formatter: checkstyle', () => {
9-
it('should have stdout output with formatter checkstyle', (done) => {
9+
it('Should have stdout output with formatter checkstyle', (done) => {
1010
const expected = fs
1111
.readFileSync(path.resolve(__dirname, 'checkstyle.xml'), 'utf8')
1212
.replace('{{path}}', path.resolve(__dirname, 'example.html'))

test/cli/formatters/checkstyle.xml

+18-18
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<checkstyle version="4.3">
33
<file name="{{path}}">
4-
<error line="8" column="7" severity="error" message="The value of attribute [ bad ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
5-
<error line="8" column="14" severity="error" message="The value of attribute [ bad ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
64
<error line="8" column="14" severity="error" message="Duplicate of attribute name [ bad ] was found." source="htmlhint.attr-no-duplication"/>
7-
<error line="9" column="7" severity="error" message="The value of attribute [ bad ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
8-
<error line="9" column="14" severity="error" message="The value of attribute [ bad ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
5+
<error line="8" column="7" severity="warning" message="The value of attribute [ bad ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
6+
<error line="8" column="14" severity="warning" message="The value of attribute [ bad ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
97
<error line="9" column="14" severity="error" message="Duplicate of attribute name [ bad ] was found." source="htmlhint.attr-no-duplication"/>
10-
<error line="10" column="22" severity="error" message="Tag must be paired, no start tag: [ &lt;/input&gt; ]" source="htmlhint.tag-pair"/>
11-
<error line="11" column="3" severity="error" message="Special characters must be escaped : [ &lt; ]." source="htmlhint.spec-char-escape"/>
12-
<error line="11" column="18" severity="error" message="Special characters must be escaped : [ &gt; ]." source="htmlhint.spec-char-escape"/>
13-
<error line="13" column="11" severity="error" message="Tag must be paired, no start tag: [ &lt;/div&gt; ]" source="htmlhint.tag-pair"/>
14-
<error line="14" column="9" severity="error" message="Tag must be paired, no start tag: [ &lt;/div&gt; ]" source="htmlhint.tag-pair"/>
15-
<error line="15" column="7" severity="error" message="Tag must be paired, no start tag: [ &lt;/hello&gt; ]" source="htmlhint.tag-pair"/>
16-
<error line="16" column="5" severity="error" message="Tag must be paired, no start tag: [ &lt;/test&gt; ]" source="htmlhint.tag-pair"/>
17-
<error line="17" column="3" severity="error" message="Tag must be paired, no start tag: [ &lt;/div&gt; ]" source="htmlhint.tag-pair"/>
18-
<error line="21" column="15" severity="error" message="The value of attribute [ class ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
19-
<error line="21" column="24" severity="error" message="The value of attribute [ what ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
20-
<error line="21" column="32" severity="error" message="The value of attribute [ something ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
21-
<error line="25" column="3" severity="error" message="Tag must be paired, no start tag: [ &lt;/div&gt; ]" source="htmlhint.tag-pair"/>
22-
<error line="26" column="1" severity="error" message="Tag must be paired, no start tag: [ &lt;/bad&gt; ]" source="htmlhint.tag-pair"/>
23-
<error line="27" column="1" severity="error" message="Tag must be paired, no start tag: [ &lt;/bad&gt; ]" source="htmlhint.tag-pair"/>
8+
<error line="9" column="7" severity="warning" message="The value of attribute [ bad ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
9+
<error line="9" column="14" severity="warning" message="The value of attribute [ bad ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
10+
<error line="10" column="22" severity="warning" message="Tag must be paired, no start tag: [ &lt;/input&gt; ]" source="htmlhint.tag-pair"/>
11+
<error line="11" column="3" severity="warning" message="Special characters must be escaped : [ &lt; ]." source="htmlhint.spec-char-escape"/>
12+
<error line="11" column="18" severity="warning" message="Special characters must be escaped : [ &gt; ]." source="htmlhint.spec-char-escape"/>
13+
<error line="13" column="11" severity="warning" message="Tag must be paired, no start tag: [ &lt;/div&gt; ]" source="htmlhint.tag-pair"/>
14+
<error line="14" column="9" severity="warning" message="Tag must be paired, no start tag: [ &lt;/div&gt; ]" source="htmlhint.tag-pair"/>
15+
<error line="15" column="7" severity="warning" message="Tag must be paired, no start tag: [ &lt;/hello&gt; ]" source="htmlhint.tag-pair"/>
16+
<error line="16" column="5" severity="warning" message="Tag must be paired, no start tag: [ &lt;/test&gt; ]" source="htmlhint.tag-pair"/>
17+
<error line="17" column="3" severity="warning" message="Tag must be paired, no start tag: [ &lt;/div&gt; ]" source="htmlhint.tag-pair"/>
18+
<error line="21" column="15" severity="warning" message="The value of attribute [ class ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
19+
<error line="21" column="24" severity="warning" message="The value of attribute [ what ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
20+
<error line="21" column="32" severity="warning" message="The value of attribute [ something ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
21+
<error line="25" column="3" severity="warning" message="Tag must be paired, no start tag: [ &lt;/div&gt; ]" source="htmlhint.tag-pair"/>
22+
<error line="26" column="1" severity="warning" message="Tag must be paired, no start tag: [ &lt;/bad&gt; ]" source="htmlhint.tag-pair"/>
23+
<error line="27" column="1" severity="warning" message="Tag must be paired, no start tag: [ &lt;/bad&gt; ]" source="htmlhint.tag-pair"/>
2424
</file>
2525
</checkstyle>

test/cli/formatters/compact.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const path = require('path')
66

77
describe('CLI', () => {
88
describe('Formatter: compact', () => {
9-
it('should have stdout output with formatter compact', (done) => {
9+
it('Should have stdout output with formatter compact', (done) => {
1010
const expected = fs
1111
.readFileSync(path.resolve(__dirname, 'compact.txt'), 'utf8')
1212
.replace(

0 commit comments

Comments
 (0)