mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Replace require("package.json") with constants.js to simplify and remove that file from markdownlint-browser.js.
This commit is contained in:
parent
8179adf38e
commit
c5345f45eb
6 changed files with 33 additions and 21 deletions
|
|
@ -15,6 +15,7 @@ const test = require("ava").default;
|
|||
const tv4 = require("tv4");
|
||||
const { homepage, version } = require("../package.json");
|
||||
const markdownlint = require("../lib/markdownlint");
|
||||
const constants = require("../lib/constants");
|
||||
const rules = require("../lib/rules");
|
||||
const customRules = require("./rules/rules.js");
|
||||
const configSchema = require("../schema/markdownlint-config-schema.json");
|
||||
|
|
@ -1722,3 +1723,9 @@ test("getVersion", (t) => {
|
|||
const expected = version;
|
||||
t.is(actual, expected, "Version string not correct.");
|
||||
});
|
||||
|
||||
test("constants", (t) => {
|
||||
t.plan(2);
|
||||
t.is(constants.homepage, homepage);
|
||||
t.is(constants.version, version);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue