aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2019-08-22 23:49:13 -0700
committerGravatar Tom Willemse2019-08-22 23:49:13 -0700
commit1ba30c67685ee0d0e7672a1499e853c765fa1ff0 (patch)
treec3f1d357cf412f8ba3609bd582d634247ef064ed
parentf721eb57818a3d47baaadcf8857912c064bec273 (diff)
downloademacs-config-1ba30c67685ee0d0e7672a1499e853c765fa1ff0.tar.gz
emacs-config-1ba30c67685ee0d0e7672a1499e853c765fa1ff0.zip
Add initial tests for ‘oni-css’
-rw-r--r--test/oni-css-test.el44
1 files changed, 44 insertions, 0 deletions
diff --git a/test/oni-css-test.el b/test/oni-css-test.el
new file mode 100644
index 0000000..b49ec07
--- /dev/null
+++ b/test/oni-css-test.el
@@ -0,0 +1,44 @@
+;;; oni-css-test.el --- Tests for oni-css -*- lexical-binding: t; -*-
+
+;; Copyright (C) 2019 Tom Willemse
+
+;; Author: Tom Willemse <tom@ryuslash.org>
+;; Keywords: local
+
+;; This program is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation, either version 3 of the License, or
+;; (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+;; GNU General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see <https://www.gnu.org/licenses/>.
+
+;;; Commentary:
+
+;;
+
+;;; Code:
+
+(ert-deftest oni-css-test-autoloads ()
+ "Test that ‘oni-css’ gets loaded automatically."
+ (should (not (featurep 'oni-css)))
+ (require 'css-mode)
+ (should (featurep 'oni-css))
+ (unload-feature 'oni-css t)
+ (unload-feature 'css-mode t))
+
+(ert-deftest oni-css-test-less-autoloads ()
+ "Test that ‘oni-css’ gets loaded automatically with less."
+ (should (not (featurep 'oni-css)))
+ (require 'less-css-mode)
+ (should (featurep 'oni-css))
+ (unload-feature 'oni-css t)
+ (unload-feature 'less-css-mode t))
+
+(provide 'oni-css-test)
+;;; oni-css-test.el ends here