Fast Link Checker for Markdown and HTML in Go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
967 B

Feature: HTML
Scenario: Check an empty HTML file
Given a file named "foo.html" with ""
When I successfully run `liche foo.html`
Then the stderr should contain exactly ""
Scenario: Check a HTML file
Given a file named "foo.html" with:
"""
<!DOCTYPE html>
<html>
<head>
<title>My title</title>
</head>
<body>
<div>
<a href="https://google.com">Google</a>
<a href="https://yahoo.com">Yahoo</a>
</div>
</body>
</html>
"""
When I successfully run `liche foo.html`
Then the stderr should contain exactly ""
Scenario: Ignore id reference
Given a file named "foo.html" with:
"""
<!DOCTYPE html>
<html>
<head>
<title>My title</title>
</head>
<body>
<div id="foo">
<a href="#foo">Google</a>
</div>
</body>
</html>
"""
When I successfully run `liche foo.html`
Then the stderr should contain exactly ""