Skip to content

Commit

Permalink
Add test case to verify MD052 range parameter to onError is valid and…
Browse files Browse the repository at this point in the history
… that commit 6974cd6 fixes #686.
  • Loading branch information
DavidAnson committed Dec 22, 2022
1 parent 868edf8 commit 691b7af
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/md052-invalid-range-bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# MD052 Invalid Range Bug

* [0, N)
* `inputs[0][d]`
* `inputs[k]`
14 changes: 14 additions & 0 deletions test/snapshots/markdownlint-test-scenarios.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -30319,6 +30319,20 @@ Generated by [AVA](https://avajs.dev).
`,
}

## md052-invalid-range-bug.md

> Snapshot 1

{
errors: [],
fixed: `# MD052 Invalid Range Bug␊
* [0, N)␊
* \`inputs[0][d]\`␊
* \`inputs[k]\`␊
`,
}

## mixed-emphasis-markers.md

> Snapshot 1
Expand Down
Binary file modified test/snapshots/markdownlint-test-scenarios.js.snap
Binary file not shown.

0 comments on commit 691b7af

Please sign in to comment.