Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit 49fb478

Browse files
committed
Add screenshot to readme
1 parent debe114 commit 49fb478

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ _Gulp plugin to validate HTML using the W3C Markup Validation Service_
1010

1111
This Gulp plugin is a wrapper for [w3c-html-validator](https://github.com/center-key/w3c-html-validator) (_"A package for testing HTML files or URLs against the W3C validator"_)
1212

13+
<img src=https://raw.githubusercontent.com/center-key/gulp-w3c-html-validator/main/screenshot.png
14+
width=600 alt=screenshot>
15+
1316
## 1) Setup
1417
Install module into your project:
1518
```shell

screenshot.png

129 KB
Loading

spec/mocha.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ describe('The gulp-w3c-html-validator reporter()', () => {
156156
it('displays validation messages for an invalid HTML file', (done) => {
157157
const spy = sinon.spy(process.stdout, 'write');
158158
const vinylOptions = {
159-
path: 'spec/html/valid.html',
159+
path: 'spec/html/invalid.html',
160160
cwd: 'spec/',
161161
base: 'spec/html/',
162-
contents: readFileSync('spec/html/valid.html'),
162+
contents: readFileSync('spec/html/invalid.html'),
163163
w3cHtmlValidator: analyzedFiles.invalid[0].w3cHtmlValidator,
164164
};
165165
const mockFile = new Vinyl(vinylOptions);
@@ -168,7 +168,7 @@ describe('The gulp-w3c-html-validator reporter()', () => {
168168
const handleEndOfStream = () => {
169169
// To view raw output: console.log(spy.secondCall.args);
170170
spy.restore();
171-
const headerLine = /spec\/html\/valid.html.*validation:.*fail \(messages: 2\)/;
171+
const headerLine = /spec\/html\/invalid.html.*validation:.*fail \(messages: 2\)/;
172172
const warningLine = /HTML warning:/;
173173
const errorLine = /HTML error:/;
174174
const actual = {
@@ -182,7 +182,7 @@ describe('The gulp-w3c-html-validator reporter()', () => {
182182
};
183183
const expected = {
184184
files: 1,
185-
path: 'spec/html/valid.html',
185+
path: 'spec/html/invalid.html',
186186
lines: {
187187
header: true,
188188
warning: true,

0 commit comments

Comments
 (0)