Skip to content

Commit

Permalink
Merge pull request #306 from dklimpel/enable_test_hash_links
Browse files Browse the repository at this point in the history
enable skipped tests for hash links
  • Loading branch information
tcort authored Mar 11, 2024
2 parents 71616b2 + 465fd8f commit 2b0095f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/markdown-link-check.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,14 +340,15 @@ describe('markdown-link-check', function () {
done();
});
});
it.skip('check hash links', function (done) {
it('check hash links', function (done) {
markdownLinkCheck(fs.readFileSync(path.join(__dirname, 'hash-links.md')).toString(), {}, function (err, result) {
expect(err).to.be(null);
expect(result).to.eql([
{ link: '#foo', statusCode: 200, err: null, status: 'alive' },
{ link: '#bar', statusCode: 200, err: null, status: 'alive' },
{ link: '#potato', statusCode: 404, err: null, status: 'dead' },
{ link: '#tomato', statusCode: 404, err: null, status: 'dead' },
{ link: '#header-with-special-char-', statusCode: 404, err: null, status: 'dead' },
]);
done();
});
Expand Down

0 comments on commit 2b0095f

Please sign in to comment.