Update tests for doom/what-face
This commit is contained in:
parent
4856217c84
commit
7773a312aa
1 changed files with 4 additions and 4 deletions
|
@ -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))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue