branch: externals/system-packages
commit 0b04066049cf655e47c0b2ffecea2204f36a5745
Author: Alex Branham <bran...@utexas.edu>
Commit: Alex Branham <bran...@utexas.edu>

    Test that we error when we don't know commands
---
 test/system-packages-test.el | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/test/system-packages-test.el b/test/system-packages-test.el
index 2e98dad..4360a4a 100644
--- a/test/system-packages-test.el
+++ b/test/system-packages-test.el
@@ -34,3 +34,12 @@
                  (system-packages-package-manager 'pacman))
              (system-packages-get-command 'install))
            "sudo pacman -S --noconfirm")))
+
+(ert-deftest system-packages-errors ()
+  "Error when we don't know a command."
+  (should-error
+   (let ((system-packages-package-manager 'pacaur))
+     (system-packages-get-command 'install)))
+  (should-error
+   (let ((system-packages-package-manager 'guix))
+     (system-packages-get-command 'clean-cache))))

Reply via email to