mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Update tests to verify rules can be configured by identifier and by name (in response to previous commit that changed all test files to use name).
This commit is contained in:
parent
07b851b3c7
commit
3dedc1cda1
1 changed files with 2 additions and 3 deletions
|
|
@ -237,10 +237,9 @@ test("disableRules", (t) => new Promise((resolve) => {
|
||||||
const options = {
|
const options = {
|
||||||
"files": [
|
"files": [
|
||||||
"./test/atx_heading_spacing.md",
|
"./test/atx_heading_spacing.md",
|
||||||
"./test/first_heading_bad_atx.md"
|
"./test/no_first_line_heading.md"
|
||||||
],
|
],
|
||||||
"config": {
|
"config": {
|
||||||
"MD002": false,
|
|
||||||
"default": true,
|
"default": true,
|
||||||
"MD019": false,
|
"MD019": false,
|
||||||
"first-line-h1": false
|
"first-line-h1": false
|
||||||
|
|
@ -253,7 +252,7 @@ test("disableRules", (t) => new Promise((resolve) => {
|
||||||
"./test/atx_heading_spacing.md": {
|
"./test/atx_heading_spacing.md": {
|
||||||
"MD018": [ 1 ]
|
"MD018": [ 1 ]
|
||||||
},
|
},
|
||||||
"./test/first_heading_bad_atx.md": {}
|
"./test/no_first_line_heading.md": {}
|
||||||
};
|
};
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
t.deepEqual(actualResult, expectedResult, "Undetected issues.");
|
t.deepEqual(actualResult, expectedResult, "Undetected issues.");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue