mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Minor tweaks to previous PR commit.
This commit is contained in:
parent
4bff44e33f
commit
dd2c1d08ee
4 changed files with 9 additions and 5600 deletions
|
|
@ -1083,12 +1083,12 @@ tape("configBadChildPackage", (test) => {
|
|||
test.plan(4);
|
||||
markdownlint.readConfig("./test/config/config-badchildpackage.json",
|
||||
function callback(err, result) {
|
||||
test.ok(err, "Did not get an error for bad child file.");
|
||||
test.ok(err, "Did not get an error for bad child package.");
|
||||
test.ok(err instanceof Error, "Error not instance of Error.");
|
||||
// @ts-ignore
|
||||
test.equal(err.code, "ENOENT",
|
||||
"Error code for bad child file not ENOENT.");
|
||||
test.ok(!result, "Got result for bad child file.");
|
||||
"Error code for bad child package not ENOENT.");
|
||||
test.ok(!result, "Got result for bad child package.");
|
||||
test.end();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue