mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Add example, stop modifying files array, rename "styles".
This commit is contained in:
parent
d3e9f83e7c
commit
9917d7f2fb
7 changed files with 44 additions and 2 deletions
|
|
@ -118,6 +118,20 @@ module.exports.resultFormatting = function resultFormatting(test) {
|
|||
});
|
||||
};
|
||||
|
||||
module.exports.filesNotModified = function filesNotModified(test) {
|
||||
test.expect(2);
|
||||
var files = [
|
||||
"./test/atx_header_spacing.md",
|
||||
"./test/first_header_bad_atx.md"
|
||||
];
|
||||
var expectedFiles = files.slice();
|
||||
markdownlint({ "files": files }, function callback(err) {
|
||||
test.ifError(err);
|
||||
test.deepEqual(files, expectedFiles, "Files modified.");
|
||||
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