summaryrefslogtreecommitdiff
path: root/test/fixers
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixers')
-rw-r--r--test/fixers/test_yamlfmt_fixer_callback.vader12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/fixers/test_yamlfmt_fixer_callback.vader b/test/fixers/test_yamlfmt_fixer_callback.vader
new file mode 100644
index 00000000..53604e4b
--- /dev/null
+++ b/test/fixers/test_yamlfmt_fixer_callback.vader
@@ -0,0 +1,12 @@
+Before:
+ call ale#assert#SetUpFixerTest('yaml', 'yamlfmt')
+
+After:
+ Restore
+
+ call ale#assert#TearDownFixerTest()
+
+Execute(The yamlfmt callback should return the correct default command):
+ AssertEqual
+ \ {'command': ale#Escape('yamlfmt') . ' -in'},
+ \ ale#fixers#yamlfmt#Fix(bufnr(''))