@riddledc/riddle-proof 0.7.96 → 0.7.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +3 -1
- package/dist/cli.js +3 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -12389,7 +12389,9 @@ function profileCheckMarkdownTarget(check) {
|
|
|
12389
12389
|
}
|
|
12390
12390
|
if (check.type === "selector_text_visible" || check.type === "selector_text_absent") {
|
|
12391
12391
|
const textTarget = profileCheckTextTarget(evidence);
|
|
12392
|
-
|
|
12392
|
+
const verb = check.type === "selector_text_absent" ? "does not contain" : "contains";
|
|
12393
|
+
if (selector && textTarget) return `${markdownInlineCode(selector)} ${verb} ${textTarget}`;
|
|
12394
|
+
if (textTarget && check.type === "selector_text_absent") return `${verb} ${textTarget}`;
|
|
12393
12395
|
return selector ? markdownInlineCode(selector) : textTarget;
|
|
12394
12396
|
}
|
|
12395
12397
|
if (check.type === "selector_text_order") {
|
package/dist/cli.js
CHANGED
|
@@ -391,7 +391,9 @@ function profileCheckMarkdownTarget(check) {
|
|
|
391
391
|
}
|
|
392
392
|
if (check.type === "selector_text_visible" || check.type === "selector_text_absent") {
|
|
393
393
|
const textTarget = profileCheckTextTarget(evidence);
|
|
394
|
-
|
|
394
|
+
const verb = check.type === "selector_text_absent" ? "does not contain" : "contains";
|
|
395
|
+
if (selector && textTarget) return `${markdownInlineCode(selector)} ${verb} ${textTarget}`;
|
|
396
|
+
if (textTarget && check.type === "selector_text_absent") return `${verb} ${textTarget}`;
|
|
395
397
|
return selector ? markdownInlineCode(selector) : textTarget;
|
|
396
398
|
}
|
|
397
399
|
if (check.type === "selector_text_order") {
|