aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/oni-bats-test.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/oni-bats-test.el b/test/oni-bats-test.el
index 7414dc4..3e32460 100644
--- a/test/oni-bats-test.el
+++ b/test/oni-bats-test.el
@@ -1,3 +1,5 @@
+(require 'oni-bats)
+
(ert-deftest oni-bats-test-auto-insert ()
"Test that ‘auto-insert’ inserts the proper interpreter."
(with-temp-buffer
@@ -5,3 +7,9 @@
(let ((auto-insert-query nil))
(auto-insert))
(should (string= "#!/usr/bin/env bats\n\n" (buffer-string)))))
+
+(ert-deftest oni-bats-has-shfmt-on-save-mode-disabled ()
+ "Test that ‘shfmt-on-save-mode’ is disabled in a ‘bats-mode’ buffer."
+ (with-temp-buffer
+ (bats-mode)
+ (should-not shfmt-on-save-mode)))