mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 14:30:12 +01:00
Update dependency: globby to 12.0.2.
This commit is contained in:
parent
05b9e6e43c
commit
11e9a20531
4 changed files with 29 additions and 24 deletions
|
|
@ -2,18 +2,15 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
const globby = require("globby");
|
||||
const test = require("ava").default;
|
||||
const markdownlint = require("../lib/markdownlint");
|
||||
|
||||
// Parses all Markdown files in all package dependencies
|
||||
test.cb("parseAllFiles", (t) => {
|
||||
test("parseAllFiles", async(t) => {
|
||||
t.plan(1);
|
||||
const options = {
|
||||
"files": globby.sync("**/*.{md,markdown}")
|
||||
};
|
||||
markdownlint(options, (err) => {
|
||||
t.falsy(err);
|
||||
t.end();
|
||||
});
|
||||
// eslint-disable-next-line node/no-unsupported-features/es-syntax
|
||||
const { globby } = await import("globby");
|
||||
const files = await globby("**/*.{md,markdown}");
|
||||
await markdownlint.promises.markdownlint({ files });
|
||||
t.pass();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue