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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user