diff options
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/oni-csharp.bats | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/integration/oni-csharp.bats b/test/integration/oni-csharp.bats new file mode 100644 index 0000000..241a335 --- /dev/null +++ b/test/integration/oni-csharp.bats @@ -0,0 +1,21 @@ +#!/usr/bin/env bats + +@test "Opening a .cs file loads oni-csharp" { + run emacs -batch -l package -f package-initialize \ + -visit test.cs \ + -eval "(prin1 (featurep 'oni-csharp))" + + echo "$output" + + [[ "$output" == *"t" ]] +} + +@test "Opening a .xaml file loads nxml-mode" { + run emacs -batch -l package -f package-initialize \ + -visit test.xaml \ + -eval "(prin1 major-mode)" + + echo "$output" + + [[ "$output" == *"nxml-mode" ]] +} |