Skip to content

Commit

Permalink
test: add tests to cover the --set-pale-color
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrieanKhisbe committed Oct 9, 2017
1 parent 636374c commit 6c40750
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/omni-scratch-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,15 @@
(stub helm-build-sync-source => nil)
(omni-scratch-buffers)
(should (equal (buffer-name) "buffer-test"))))

(ert-deftest omni-scratch-color-darken ()
(with-mock
(stub frame-parameter => 'dark)
(stub face-attribute => "#123456")
(omni-scratch--set-pale-color)))

(ert-deftest omni-scratch-color-lighten ()
(with-mock
(stub frame-parameter => 'light)
(stub face-attribute => "#123456")
(omni-scratch--set-pale-color)))

0 comments on commit 6c40750

Please sign in to comment.