From 3be22e0620ce824667f285a14af3830894ff8d63 Mon Sep 17 00:00:00 2001 From: David Anson Date: Wed, 11 May 2022 06:07:43 +0000 Subject: [PATCH] Remove unnecessary promise from markdownlint-test-scenarios.js. --- test/markdownlint-test-scenarios.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/test/markdownlint-test-scenarios.js b/test/markdownlint-test-scenarios.js index 5df22051..1eadb63f 100644 --- a/test/markdownlint-test-scenarios.js +++ b/test/markdownlint-test-scenarios.js @@ -75,21 +75,14 @@ function createTestForFile(file) { errors, fixed }); - return { - config, - fixed - }; - }) - // Identify missing fixes - .then((params) => { - const { config, fixed } = params; + // Identify missing fixes return markdownlint({ "strings": { "input": fixed }, config - }).then((results) => { - const unfixed = results.input.filter((error) => !!error.fixInfo); + }).then((fixedResults) => { + const unfixed = fixedResults.input.filter((error) => !!error.fixInfo); t.deepEqual(unfixed, [], "Fixable error(s) not fixed."); }); })