mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00: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
|
|
@ -16,7 +16,7 @@
|
|||
"test-cover": "istanbul cover node_modules/nodeunit/bin/nodeunit",
|
||||
"debug": "node debug node_modules/nodeunit/bin/nodeunit",
|
||||
"lint": "eslint lib test & eslint --rule \"no-console: 0, no-shadow: 0\" example",
|
||||
"example": "cd example & node standalone.js & grunt markdownlint & gulp markdownlint"
|
||||
"example": "npm install through2 & cd example & node standalone.js & grunt markdownlint & gulp markdownlint"
|
||||
},
|
||||
"dependencies": {
|
||||
"markdown-it": "^4.1.1"
|
||||
|
|
|
|||
|
|
@ -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