mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 14:30:12 +01:00
wip
This commit is contained in:
parent
19649c17d0
commit
0117a71138
7 changed files with 74 additions and 86 deletions
|
|
@ -171,13 +171,15 @@ lintAsync(options, assertLintResultsCallback);
|
|||
assertLintResultsCallback(null, await lintPromise(options));
|
||||
})();
|
||||
|
||||
const needsFixing = "# Heading\n";
|
||||
|
||||
assert.equal(
|
||||
applyFix(
|
||||
"# Fixing\n",
|
||||
needsFixing,
|
||||
{
|
||||
"insertText": "Head",
|
||||
"editColumn": 3,
|
||||
"deleteCount": 3
|
||||
"insertText": " ",
|
||||
"editColumn": 2,
|
||||
"deleteCount": 2
|
||||
},
|
||||
"\n"
|
||||
),
|
||||
|
|
@ -186,17 +188,12 @@ assert.equal(
|
|||
|
||||
assert.equal(
|
||||
applyFixes(
|
||||
"# Fixing\n",
|
||||
[
|
||||
{
|
||||
"lineNumber": 1,
|
||||
"fixInfo": {
|
||||
"insertText": "Head",
|
||||
"editColumn": 3,
|
||||
"deleteCount": 3
|
||||
}
|
||||
needsFixing,
|
||||
lintSync({
|
||||
"strings": {
|
||||
needsFixing
|
||||
}
|
||||
]
|
||||
})["needsFixing"]
|
||||
),
|
||||
"# Heading\n"
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue