Skip to content

Commit

Permalink
test: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Quadflieg committed Jul 10, 2020
1 parent 459974d commit a763b2e
Show file tree
Hide file tree
Showing 47 changed files with 246 additions and 212 deletions.
2 changes: 1 addition & 1 deletion test/cli/formatters/checkstyle.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const path = require('path')

describe('CLI', () => {
describe('Formatter: checkstyle', () => {
it('should have stdout output with formatter checkstyle', (done) => {
it('Should have stdout output with formatter checkstyle', (done) => {
const expected = fs
.readFileSync(path.resolve(__dirname, 'checkstyle.xml'), 'utf8')
.replace('{{path}}', path.resolve(__dirname, 'example.html'))
Expand Down
36 changes: 18 additions & 18 deletions test/cli/formatters/checkstyle.xml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<checkstyle version="4.3">
<file name="{{path}}">
<error line="8" column="7" severity="error" message="The value of attribute [ bad ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
<error line="8" column="14" severity="error" message="The value of attribute [ bad ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
<error line="8" column="14" severity="error" message="Duplicate of attribute name [ bad ] was found." source="htmlhint.attr-no-duplication"/>
<error line="9" column="7" severity="error" message="The value of attribute [ bad ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
<error line="9" column="14" severity="error" message="The value of attribute [ bad ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
<error line="8" column="7" severity="warning" message="The value of attribute [ bad ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
<error line="8" column="14" severity="warning" message="The value of attribute [ bad ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
<error line="9" column="14" severity="error" message="Duplicate of attribute name [ bad ] was found." source="htmlhint.attr-no-duplication"/>
<error line="10" column="22" severity="error" message="Tag must be paired, no start tag: [ &lt;/input&gt; ]" source="htmlhint.tag-pair"/>
<error line="11" column="3" severity="error" message="Special characters must be escaped : [ &lt; ]." source="htmlhint.spec-char-escape"/>
<error line="11" column="18" severity="error" message="Special characters must be escaped : [ &gt; ]." source="htmlhint.spec-char-escape"/>
<error line="13" column="11" severity="error" message="Tag must be paired, no start tag: [ &lt;/div&gt; ]" source="htmlhint.tag-pair"/>
<error line="14" column="9" severity="error" message="Tag must be paired, no start tag: [ &lt;/div&gt; ]" source="htmlhint.tag-pair"/>
<error line="15" column="7" severity="error" message="Tag must be paired, no start tag: [ &lt;/hello&gt; ]" source="htmlhint.tag-pair"/>
<error line="16" column="5" severity="error" message="Tag must be paired, no start tag: [ &lt;/test&gt; ]" source="htmlhint.tag-pair"/>
<error line="17" column="3" severity="error" message="Tag must be paired, no start tag: [ &lt;/div&gt; ]" source="htmlhint.tag-pair"/>
<error line="21" column="15" severity="error" message="The value of attribute [ class ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
<error line="21" column="24" severity="error" message="The value of attribute [ what ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
<error line="21" column="32" severity="error" message="The value of attribute [ something ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
<error line="25" column="3" severity="error" message="Tag must be paired, no start tag: [ &lt;/div&gt; ]" source="htmlhint.tag-pair"/>
<error line="26" column="1" severity="error" message="Tag must be paired, no start tag: [ &lt;/bad&gt; ]" source="htmlhint.tag-pair"/>
<error line="27" column="1" severity="error" message="Tag must be paired, no start tag: [ &lt;/bad&gt; ]" source="htmlhint.tag-pair"/>
<error line="9" column="7" severity="warning" message="The value of attribute [ bad ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
<error line="9" column="14" severity="warning" message="The value of attribute [ bad ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
<error line="10" column="22" severity="warning" message="Tag must be paired, no start tag: [ &lt;/input&gt; ]" source="htmlhint.tag-pair"/>
<error line="11" column="3" severity="warning" message="Special characters must be escaped : [ &lt; ]." source="htmlhint.spec-char-escape"/>
<error line="11" column="18" severity="warning" message="Special characters must be escaped : [ &gt; ]." source="htmlhint.spec-char-escape"/>
<error line="13" column="11" severity="warning" message="Tag must be paired, no start tag: [ &lt;/div&gt; ]" source="htmlhint.tag-pair"/>
<error line="14" column="9" severity="warning" message="Tag must be paired, no start tag: [ &lt;/div&gt; ]" source="htmlhint.tag-pair"/>
<error line="15" column="7" severity="warning" message="Tag must be paired, no start tag: [ &lt;/hello&gt; ]" source="htmlhint.tag-pair"/>
<error line="16" column="5" severity="warning" message="Tag must be paired, no start tag: [ &lt;/test&gt; ]" source="htmlhint.tag-pair"/>
<error line="17" column="3" severity="warning" message="Tag must be paired, no start tag: [ &lt;/div&gt; ]" source="htmlhint.tag-pair"/>
<error line="21" column="15" severity="warning" message="The value of attribute [ class ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
<error line="21" column="24" severity="warning" message="The value of attribute [ what ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
<error line="21" column="32" severity="warning" message="The value of attribute [ something ] must be in double quotes." source="htmlhint.attr-value-double-quotes"/>
<error line="25" column="3" severity="warning" message="Tag must be paired, no start tag: [ &lt;/div&gt; ]" source="htmlhint.tag-pair"/>
<error line="26" column="1" severity="warning" message="Tag must be paired, no start tag: [ &lt;/bad&gt; ]" source="htmlhint.tag-pair"/>
<error line="27" column="1" severity="warning" message="Tag must be paired, no start tag: [ &lt;/bad&gt; ]" source="htmlhint.tag-pair"/>
</file>
</checkstyle>
2 changes: 1 addition & 1 deletion test/cli/formatters/compact.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const path = require('path')

describe('CLI', () => {
describe('Formatter: compact', () => {
it('should have stdout output with formatter compact', (done) => {
it('Should have stdout output with formatter compact', (done) => {
const expected = fs
.readFileSync(path.resolve(__dirname, 'compact.txt'), 'utf8')
.replace(
Expand Down

0 comments on commit a763b2e

Please sign in to comment.