Update map! tests for removal of :if

This commit is contained in:
Henrik Lissner 2019-01-02 16:06:20 -05:00
parent c7f9886be8
commit 5e3d4c3ba2
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -173,9 +173,9 @@
:to-expand-into :to-expand-into
`(general-define-key "a" (list :def #'a :which-key "A"))))) `(general-define-key "a" (list :def #'a :which-key "A")))))
(describe ":if/:when/:unless" (describe ":when/:unless"
(it "wraps keys in a conditional block" (it "wraps keys in a conditional block"
(dolist (prop '(:if :when :unless)) (dolist (prop '(:when :unless))
(let ((prop-fn (intern (doom-keyword-name prop)))) (let ((prop-fn (intern (doom-keyword-name prop))))
(expect `(map! ,prop t "a" #'a "b" #'b) (expect `(map! ,prop t "a" #'a "b" #'b)
:to-expand-into :to-expand-into