From 7fb78d41eb90a4fe23933631ed3938499aef8873 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 15 Oct 2020 10:36:00 -0700 Subject: [PATCH] Add test to see if gcmh-mode is enabled --- test/integration/oni-core.bats | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/integration/oni-core.bats b/test/integration/oni-core.bats index 373d3ea..c7c6dae 100755 --- a/test/integration/oni-core.bats +++ b/test/integration/oni-core.bats @@ -36,6 +36,15 @@ [[ "$output" == *"t" ]] } +@test "Starting Emacs enables gcmh-mode" { + run emacs -batch -l package -f package-initialize \ + -eval "(prin1 (bound-and-true-p gcmh-mode))" + + echo "$output" + + [[ "$output" == *"t" ]] +} + @test "Starting Emacs diminishes ws-butler-global-mode" { run emacs -batch -l package -f package-initialize -l subr-x \ -eval "(prin1 (string-empty-p (car (alist-get 'ws-butler-mode minor-mode-alist))))"