mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Add getVersion function to exports for easy access by tooling (ex: CLI).
This commit is contained in:
parent
bd50a15a96
commit
a971361cf2
4 changed files with 28 additions and 1 deletions
|
|
@ -1443,3 +1443,11 @@ $$\n`
|
|||
test.end();
|
||||
});
|
||||
});
|
||||
|
||||
tape("getVersion", (test) => {
|
||||
test.plan(1);
|
||||
const actual = markdownlint.getVersion();
|
||||
const expected = packageJson.version;
|
||||
test.equal(actual, expected, "Version string not correct.");
|
||||
test.end();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue