mirror of
https://github.com/vale981/doom-modeline
synced 2025-03-05 09:21:38 -05:00
Fix UT issue.
This commit is contained in:
parent
233bad9db5
commit
8cbb0457f3
1 changed files with 5 additions and 5 deletions
|
@ -37,11 +37,11 @@
|
|||
(ert-deftest doom-modeline-icon/octicon-icon ()
|
||||
(let ((doom-modeline-icon t)
|
||||
(doom-modeline-unicode-fallback t))
|
||||
(cl-flet ((display-graphic-p (&optional _display) t))
|
||||
(should
|
||||
(string= (substring-no-properties
|
||||
(doom-modeline-icon 'octicon "octoface" "☻" ":)" 'error))
|
||||
"")))))
|
||||
;; In TUI, fallback to unicode.
|
||||
(should
|
||||
(string= (substring-no-properties
|
||||
(doom-modeline-icon 'octicon "octoface" "☻" ":)" 'error))
|
||||
"☻"))))
|
||||
|
||||
(ert-deftest doom-modeline-icon/octicon-unicode ()
|
||||
(let ((doom-modeline-icon nil)
|
||||
|
|
Loading…
Add table
Reference in a new issue