mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
Convert from tape test harness to ava, address minor declaration file issue.
This commit is contained in:
parent
80069552b4
commit
49945d6601
12 changed files with 665 additions and 679 deletions
|
@ -35,8 +35,11 @@ function assertLintResults(results: markdownlint.LintResults) {
|
|||
assert.equal(results["string"][0].errorContext, null);
|
||||
assert.deepEqual(results["string"][0].errorRange, [ 9, 1 ]);
|
||||
assert(!!results["string"][0].fixInfo);
|
||||
// @ts-ignore
|
||||
assert.equal(results["string"][0].fixInfo.editColumn, 10);
|
||||
// @ts-ignore
|
||||
assert(!results["string"][0].fixInfo.deleteCount);
|
||||
// @ts-ignore
|
||||
assert.equal(results["string"][0].fixInfo.insertText, "\n");
|
||||
assert.equal(results["../bad.md"].length, 2);
|
||||
// Deliberate assignment to unused variable validates types
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue