mirror of
https://github.com/theoludwig/markdownlint-rule-relative-links.git
synced 2025-05-27 11:37:24 +02:00
test: separate cases, so it's easier to know what fails
This commit is contained in:
3
test/fixtures/valid/existing-file.md
vendored
Normal file
3
test/fixtures/valid/existing-file.md
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
# Valid
|
||||
|
||||
[File](../../index.test.js)
|
13
test/fixtures/valid/existing-heading-fragment/awesome.md
vendored
Normal file
13
test/fixtures/valid/existing-heading-fragment/awesome.md
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
# Valid
|
||||
|
||||
## Existing Heading
|
||||
|
||||
### Repeated Heading
|
||||
|
||||
Text
|
||||
|
||||
### Repeated Heading
|
||||
|
||||
Text
|
||||
|
||||
### Repeated Heading
|
9
test/fixtures/valid/existing-heading-fragment/existing-heading-fragment.md
vendored
Normal file
9
test/fixtures/valid/existing-heading-fragment/existing-heading-fragment.md
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
# Valid
|
||||
|
||||
[Link fragment](./awesome.md#existing-heading)
|
||||
|
||||
[Link fragment Repeated 0](./awesome.md#repeated-heading)
|
||||
|
||||
[Link fragment Repeated 1](./awesome.md#repeated-heading-1)
|
||||
|
||||
[Link fragment Repeated 2](./awesome.md#repeated-heading-2)
|
3
test/fixtures/valid/existing-image.md
vendored
Normal file
3
test/fixtures/valid/existing-image.md
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
# Valid
|
||||
|
||||

|
3
test/fixtures/valid/ignore-absolute-paths.md
vendored
Normal file
3
test/fixtures/valid/ignore-absolute-paths.md
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
# Valid
|
||||
|
||||

|
7
test/fixtures/valid/ignore-external-links.md
vendored
Normal file
7
test/fixtures/valid/ignore-external-links.md
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
# Valid
|
||||
|
||||
[External https link](https://example.com/)
|
||||
|
||||
[External https link 2](https:./external.https)
|
||||
|
||||
[External ftp link](ftp:./external.ftp)
|
BIN
test/fixtures/valid/image.png
vendored
Executable file
BIN
test/fixtures/valid/image.png
vendored
Executable file
Binary file not shown.
After Width: | Height: | Size: 95 B |
Reference in New Issue
Block a user