Merge pull request #306 from dklimpel/enable_test_hash_links

enable skipped tests for hash links
This commit is contained in:
Thomas Cort 2024-03-11 17:35:48 -04:00 committed by GitHub
commit 2b0095f270
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -340,7 +340,7 @@ 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([
@ -348,6 +348,7 @@ describe('markdown-link-check', function () {
{ 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();
});