diff options
author | Tom Willemse | 2020-01-07 17:17:35 -0800 |
---|---|---|
committer | Tom Willemse | 2020-01-07 21:33:42 -0800 |
commit | 5ea266270db1c69b847d7d6b115b2817e5ad235b (patch) | |
tree | 68e9bc10cf3d64ea3fc9af5300c955e73838cdf5 /test/oni-bats-test.el | |
parent | 487f25a7a6870ca78d7daeeccb7218ed4681a429 (diff) | |
download | emacs-config-5ea266270db1c69b847d7d6b115b2817e5ad235b.tar.gz emacs-config-5ea266270db1c69b847d7d6b115b2817e5ad235b.zip |
Add auto-insert template for bats-mode
Diffstat (limited to 'test/oni-bats-test.el')
-rw-r--r-- | test/oni-bats-test.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/oni-bats-test.el b/test/oni-bats-test.el new file mode 100644 index 0000000..7414dc4 --- /dev/null +++ b/test/oni-bats-test.el @@ -0,0 +1,7 @@ +(ert-deftest oni-bats-test-auto-insert () + "Test that ‘auto-insert’ inserts the proper interpreter." + (with-temp-buffer + (bats-mode) + (let ((auto-insert-query nil)) + (auto-insert)) + (should (string= "#!/usr/bin/env bats\n\n" (buffer-string))))) |