mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Handle non-Array inputs for options.files.
This commit is contained in:
parent
c4a0e6c312
commit
1e23d035ce
2 changed files with 19 additions and 1 deletions
|
|
@ -643,6 +643,19 @@ module.exports.filesArrayNotModified = function filesArrayNotModified(test) {
|
|||
});
|
||||
};
|
||||
|
||||
module.exports.filesArrayAsString = function filesArrayAsString(test) {
|
||||
test.expect(2);
|
||||
markdownlint({
|
||||
"files": "README.md",
|
||||
"config": { "MD013": false }
|
||||
}, function callback(err, actual) {
|
||||
test.ifError(err);
|
||||
var expected = { "README.md": {} };
|
||||
test.deepEqual(actual, expected, "Unexpected issues.");
|
||||
test.done();
|
||||
});
|
||||
};
|
||||
|
||||
module.exports.missingOptions = function missingOptions(test) {
|
||||
test.expect(2);
|
||||
markdownlint(null, function callback(err, result) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue