mirror of
https://github.com/theoludwig/markdownlint-rule-relative-links.git
synced 2025-05-27 11:37:24 +02:00
feat: improve errors message to distinguish between file system and fragment errors
This commit is contained in:
@ -23,7 +23,7 @@ test('ensure the rule validate correctly', async () => {
|
||||
)
|
||||
assert.equal(
|
||||
lintResults['test/fixtures/Invalid.md'][0]?.errorDetail,
|
||||
'Link "./basic.test.js" is not valid'
|
||||
'Link "./basic.test.js" should exist in the file system'
|
||||
)
|
||||
|
||||
assert.equal(
|
||||
@ -32,7 +32,7 @@ test('ensure the rule validate correctly', async () => {
|
||||
)
|
||||
assert.equal(
|
||||
lintResults['test/fixtures/Invalid.md'][1]?.errorDetail,
|
||||
'Link "../image.png" is not valid'
|
||||
'Link "../image.png" should exist in the file system'
|
||||
)
|
||||
|
||||
assert.equal(
|
||||
@ -41,6 +41,6 @@ test('ensure the rule validate correctly', async () => {
|
||||
)
|
||||
assert.equal(
|
||||
lintResults['test/fixtures/Invalid.md'][2]?.errorDetail,
|
||||
'Link "./Valid.md#not-existing-heading" is not valid'
|
||||
'Link "./Valid.md#not-existing-heading" should have a valid fragment'
|
||||
)
|
||||
})
|
||||
|
Reference in New Issue
Block a user