mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Add '\r' to line ending test, install through2 for example script.
This commit is contained in:
parent
548e3d35cb
commit
dab36c5afa
2 changed files with 4 additions and 2 deletions
|
|
@ -162,14 +162,16 @@ module.exports.stringInputLineEndings = function stringInputLineEndings(test) {
|
|||
test.expect(2);
|
||||
var options = {
|
||||
"strings": {
|
||||
"cr": "One\rTwo\r#Three",
|
||||
"lf": "One\nTwo\n#Three",
|
||||
"crlf": "One\r\nTwo\r\n#Three",
|
||||
"mixed": "One\r\nTwo\n#Three"
|
||||
"mixed": "One\rTwo\n#Three"
|
||||
}
|
||||
};
|
||||
markdownlint(options, function callback(err, actualResult) {
|
||||
test.ifError(err);
|
||||
var expectedResult = {
|
||||
"cr": { "MD018": [ 3 ] },
|
||||
"lf": { "MD018": [ 3 ] },
|
||||
"crlf": { "MD018": [ 3 ] },
|
||||
"mixed": { "MD018": [ 3 ] }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue