Add '\r' to line ending test, install through2 for example script.

This commit is contained in:
David Anson 2015-05-02 17:41:41 -07:00
parent 548e3d35cb
commit dab36c5afa
2 changed files with 4 additions and 2 deletions

View file

@ -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 ] }