diff options
| author | Protesilaos <info@protesilaos.com> | 2026-05-01 17:44:49 +0300 |
|---|---|---|
| committer | Protesilaos <info@protesilaos.com> | 2026-05-01 17:44:49 +0300 |
| commit | 15c77ce9391193e97e3a978da07e0f618d01433e (patch) | |
| tree | 338723362c891a790a44c783981380f0c28c6146 | |
| parent | 0775c7ee92057dc877468c0413205c75d6e48db0 (diff) | |
Update the test for modus-themes-wcag-formula
I prefer to have an error if the wrong colour is provided.
| -rw-r--r-- | tests/modus-themes-test.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modus-themes-test.el b/tests/modus-themes-test.el index b4120e7..9f2d409 100644 --- a/tests/modus-themes-test.el +++ b/tests/modus-themes-test.el @@ -95,7 +95,7 @@ Else provide a generic snippet of text." Also see `modus-themes-test--modus-themes--hex-to-rgb'." (should (= (modus-themes-wcag-formula "#ffffff") 1.0)) (should (= (modus-themes-wcag-formula "#000000") 0.0)) - (should-not (modus-themes-wcag-formula "#00000"))) + (should-error (modus-themes-wcag-formula "#00000"))) (mtt-define-test modus-themes-contrast "Test that `modus-themes-contrast' works as intended. |
