Skip to content

Commit

Permalink
test: add test to redress coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Jan 4, 2022
1 parent 27ba7ef commit e2c0011
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/gitdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ describe('Gitdown', () => {
});
});

describe('prefixRelativeUrls', () => {
it('replaces relative links', () => {
expect(Gitdown.prefixRelativeUrls('A [relative](#link) test')).to.equal('A [relative](#user-content-link) test');
});
});

describe('.nestHeadingIds()', () => {
it('replaces heading markup with HTML', () => {
expect(
Expand Down

0 comments on commit e2c0011

Please sign in to comment.