summaryrefslogtreecommitdiff
path: root/test/fixers
diff options
context:
space:
mode:
authorMatheus Werny <46067952+Spixmaster@users.noreply.github.com>2023-08-15 11:15:06 +0200
committerGitHub <noreply@github.com>2023-08-15 10:15:06 +0100
commit951b280bd5665eadd00e22bef7c7ef23cdc57854 (patch)
tree7a719e2464e34bcd5ef6ac87465852f0818c7fef /test/fixers
parent15cbc0e912acf31d8185dbef00473e9555591350 (diff)
downloadale-951b280bd5665eadd00e22bef7c7ef23cdc57854.zip
yamlfmt (#4587)
* Added the fixer, wrote tests and tested it
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(''))