mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Remove unnecessary promise from markdownlint-test-scenarios.js.
This commit is contained in:
parent
820f2699ca
commit
3be22e0620
1 changed files with 3 additions and 10 deletions
|
|
@ -75,21 +75,14 @@ function createTestForFile(file) {
|
||||||
errors,
|
errors,
|
||||||
fixed
|
fixed
|
||||||
});
|
});
|
||||||
return {
|
// Identify missing fixes
|
||||||
config,
|
|
||||||
fixed
|
|
||||||
};
|
|
||||||
})
|
|
||||||
// Identify missing fixes
|
|
||||||
.then((params) => {
|
|
||||||
const { config, fixed } = params;
|
|
||||||
return markdownlint({
|
return markdownlint({
|
||||||
"strings": {
|
"strings": {
|
||||||
"input": fixed
|
"input": fixed
|
||||||
},
|
},
|
||||||
config
|
config
|
||||||
}).then((results) => {
|
}).then((fixedResults) => {
|
||||||
const unfixed = results.input.filter((error) => !!error.fixInfo);
|
const unfixed = fixedResults.input.filter((error) => !!error.fixInfo);
|
||||||
t.deepEqual(unfixed, [], "Fixable error(s) not fixed.");
|
t.deepEqual(unfixed, [], "Fixable error(s) not fixed.");
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue