diff --git a/test/markdownlint-test-repos.js b/test/markdownlint-test-repos.js index 20a73b38..2ac92370 100644 --- a/test/markdownlint-test-repos.js +++ b/test/markdownlint-test-repos.js @@ -38,7 +38,16 @@ async function lintTestRepo(t, globPatterns, configPath) { const config = Object.fromEntries( // @ts-ignore Object.entries(rawConfig). - map(([ k, v ]) => [ k.replace(/header/, "heading"), v ]) + map(([ k, v ]) => [ + k.replace(/header/, "heading"), + typeof v === "object" ? + Object.fromEntries( + // @ts-ignore + Object.entries(v). + map(([ kk, vv ]) => [ kk.replace(/^allow_different_nesting$/, "siblings_only"), vv ]) + ) : + v + ]) ); return markdownlintPromise({ files, diff --git a/test/snapshots/markdownlint-test-repos.js.snap b/test/snapshots/markdownlint-test-repos.js.snap index 1b1a6d15..d1c786de 100644 Binary files a/test/snapshots/markdownlint-test-repos.js.snap and b/test/snapshots/markdownlint-test-repos.js.snap differ