aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/integration/oni-org.bats31
1 files changed, 31 insertions, 0 deletions
diff --git a/test/integration/oni-org.bats b/test/integration/oni-org.bats
new file mode 100644
index 0000000..1b20e68
--- /dev/null
+++ b/test/integration/oni-org.bats
@@ -0,0 +1,31 @@
+#!/usr/bin/env bats
+
+@test "Opening a .org file loads oni-org" {
+ run emacs -batch -l package -f package-initialize \
+ -visit test.org \
+ -eval "(prin1 (featurep 'oni-org))"
+
+ echo "$output"
+
+ [[ "$output" == *"t" ]]
+}
+
+@test "Loading org-edna diminishes org-edna-mode" {
+ run emacs -batch -l package -f package-initialize -l subr-x \
+ -l org-edna \
+ -eval "(prin1 (string-empty-p (car (alist-get 'org-edna-mode minor-mode-alist))))"
+
+ echo "$output"
+
+ [[ "$output" == *"t" ]]
+}
+
+@test "Reloading org-edna diminishes org-edna-mode" {
+ run emacs -batch -l package -f package-initialize -l subr-x \
+ -l org-edna \
+ -eval "(prin1 (string-empty-p (car (alist-get 'org-edna-mode minor-mode-alist))))"
+
+ echo "$output"
+
+ [[ "$output" == *"t" ]]
+}