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:
David Anson 2023-07-27 21:42:14 -07:00
parent 07b851b3c7
commit 3dedc1cda1

View file

@ -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.");