clean brittle tests (#3)

Reviewed-on: #3
Reviewed-by: xtul <mpiasecki720@protonmail.com>
Co-authored-by: vickydotbat <vickydotbat@tutamail.com>
Co-committed-by: vickydotbat <vickydotbat@tutamail.com>
This commit was merged in pull request #3.
This commit is contained in:
2026-06-20 10:33:00 +00:00
committed by archvillainette
parent 3dae204bab
commit 653205c117
8 changed files with 142 additions and 405 deletions
+4 -4
View File
@@ -14,14 +14,14 @@ assert(
assert.match(
stylesheet,
/i\.fa-chevron-up\s*\{[^}]*--fa:\s*"\\f004"/s,
"The upvote button should reuse Harmony's Font Awesome element with the fa-heart glyph"
/i\.fa-chevron-up\s*\{[^}]*--fa:\s*"\\f[0-9a-f]+"/s,
"The upvote button should reuse Harmony's Font Awesome element"
);
assert.match(
stylesheet,
/i\.fa-chevron-down\s*\{[^}]*--fa:\s*"\\f7a9"/s,
"The downvote button should reuse Harmony's Font Awesome element with the fa-heart-crack glyph"
/i\.fa-chevron-down\s*\{[^}]*--fa:\s*"\\f[0-9a-f]+"/s,
"The downvote button should reuse Harmony's Font Awesome element"
);
assert.doesNotMatch(