Remove unnecessary promise from markdownlint-test-scenarios.js.

This commit is contained in:
David Anson 2022-05-11 06:07:43 +00:00 committed by GitHub
parent 820f2699ca
commit 3be22e0620

View file

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