Remove doom/what-face unit tests
This commit is contained in:
parent
d868f5fd10
commit
a669406cad
1 changed files with 5 additions and 26 deletions
|
@ -1,31 +1,10 @@
|
||||||
;; -*- no-byte-compile: t; -*-
|
;; -*- no-byte-compile: t; -*-
|
||||||
;;; core/test/test-autoload-help.el
|
;;; core/test/test-autoload-help.el
|
||||||
|
|
||||||
(load! "autoload/help" doom-core-dir)
|
;; (load! "autoload/help" doom-core-dir)
|
||||||
|
|
||||||
;;
|
;;
|
||||||
(describe "core/autoload/help"
|
;; (describe "core/autoload/help"
|
||||||
:var (a)
|
;; :var (a)
|
||||||
(before-each (setq a (switch-to-buffer (get-buffer-create "a"))))
|
;; (before-each (setq a (switch-to-buffer (get-buffer-create "a"))))
|
||||||
(after-each (kill-buffer a))
|
;; (after-each (kill-buffer a)))
|
||||||
|
|
||||||
(describe "what-face"
|
|
||||||
(before-each
|
|
||||||
(insert (propertize "Hello " 'face 'font-lock-keyword-face))
|
|
||||||
(insert "world"))
|
|
||||||
(it "returns list of faces at point"
|
|
||||||
(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 nil (point-max)) :to-be nil)))
|
|
||||||
|
|
||||||
(describe "what-face overlays"
|
|
||||||
(before-each
|
|
||||||
(insert "Hello world")
|
|
||||||
(let ((ov (make-overlay 1 6)))
|
|
||||||
(overlay-put ov 'face 'font-lock-keyword-face)))
|
|
||||||
|
|
||||||
(it "returns list of overlays at point"
|
|
||||||
(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 nil (point-max)) :to-be nil))))
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue