Add test case for custom rule that imports an ESM module (refs #477).

This commit is contained in:
David Anson 2022-01-11 23:08:53 -08:00
parent b1aef98220
commit 23d8ed7c01
5 changed files with 87 additions and 2 deletions

View file

@ -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));