mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Update tests for doom/what-face
This commit is contained in:
@ -14,9 +14,9 @@
|
||||
(insert (propertize "Hello " 'face 'font-lock-keyword-face))
|
||||
(insert "world"))
|
||||
(it "returns list of faces at point"
|
||||
(expect (doom/what-face (point-min)) :to-equal '((font-lock-keyword-face) ())))
|
||||
(expect (doom/what-face nil (point-min)) :to-equal '((font-lock-keyword-face) ())))
|
||||
(it "returns nil if no faces at point"
|
||||
(expect (doom/what-face (point-max)) :to-be nil)))
|
||||
(expect (doom/what-face nil (point-max)) :to-be nil)))
|
||||
|
||||
(describe "what-face overlays"
|
||||
(before-each
|
||||
@ -25,7 +25,7 @@
|
||||
(overlay-put ov 'face 'font-lock-keyword-face)))
|
||||
|
||||
(it "returns list of overlays at point"
|
||||
(expect (doom/what-face (point-min)) :to-equal '(() (font-lock-keyword-face))))
|
||||
(expect (doom/what-face nil (point-min)) :to-equal '(() (font-lock-keyword-face))))
|
||||
(it "returns nil if no overlays at point"
|
||||
(expect (doom/what-face (point-max)) :to-be nil))))
|
||||
(expect (doom/what-face nil (point-max)) :to-be nil))))
|
||||
|
||||
|
Reference in New Issue
Block a user