From 76f9a50c45eb9a62f616294c1875f8afdcafa412 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 28 Jan 2020 21:48:28 -0800 Subject: Add tests for oni-csharp --- test/integration/oni-csharp.bats | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/integration/oni-csharp.bats (limited to 'test') 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" ]] +} -- cgit v1.2.3-54-g00ecf