mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Add test case for custom rule that imports an ESM module (refs #477).
This commit is contained in:
parent
b1aef98220
commit
23d8ed7c01
5 changed files with 87 additions and 2 deletions
|
|
@ -1109,7 +1109,7 @@ test("allBuiltInRulesHaveValidUrl", (t) => {
|
|||
});
|
||||
|
||||
test("someCustomRulesHaveValidUrl", (t) => {
|
||||
t.plan(7);
|
||||
t.plan(8);
|
||||
customRules.all.forEach(function forRule(rule) {
|
||||
t.true(!rule.information ||
|
||||
(Object.getPrototypeOf(rule.information) === URL.prototype));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue