summaryrefslogtreecommitdiff
path: root/test/linter/test_nimlsp.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/linter/test_nimlsp.vader')
-rw-r--r--test/linter/test_nimlsp.vader12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/linter/test_nimlsp.vader b/test/linter/test_nimlsp.vader
new file mode 100644
index 00000000..c109deef
--- /dev/null
+++ b/test/linter/test_nimlsp.vader
@@ -0,0 +1,12 @@
+Before:
+ call ale#assert#SetUpLinterTest('nim', 'nimlsp')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(It does not set nim sources by default):
+ AssertLinter 'nimlsp', ale#Escape('nimlsp')
+
+Execute(Sets nimlsp and escapes sources from g:ale_nim_nimlsp_nim_sources):
+ let g:ale_nim_nimlsp_nim_sources = '/path/to /Nim'
+ AssertLinter 'nimlsp', ale#Escape('nimlsp') . ' ' . ale#Escape('/path/to /Nim')