summaryrefslogtreecommitdiff
path: root/test/fixers
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2020-08-14 00:27:41 +0100
committerGitHub <noreply@github.com>2020-08-14 00:27:41 +0100
commit8151e3e8facfc0474ac18177fc1a3047326788d5 (patch)
treec24ed0f5f46944db14fb16894167417232befcb7 /test/fixers
parent94a968ef39cff0e50edafaa307f04b1a958ffbe4 (diff)
parentefe120ce9a9100129f1a811a659b0d7526cbf266 (diff)
downloadale-8151e3e8facfc0474ac18177fc1a3047326788d5.zip
Merge pull request #2920 from ConradIrwin/prettier-standard-stdin
Fix prettier_standard to respect the configuration file
Diffstat (limited to 'test/fixers')
-rw-r--r--test/fixers/test_prettier_standard_callback.vader19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/fixers/test_prettier_standard_callback.vader b/test/fixers/test_prettier_standard_callback.vader
new file mode 100644
index 00000000..ab33fe20
--- /dev/null
+++ b/test/fixers/test_prettier_standard_callback.vader
@@ -0,0 +1,19 @@
+Before:
+ call ale#assert#SetUpFixerTest('javascript', 'prettier_standard')
+
+ silent cd ..
+ silent cd command_callback
+ let g:dir = getcwd()
+
+After:
+ call ale#assert#TearDownFixerTest()
+
+Execute(The prettier callback should return the correct default values):
+ call ale#test#SetFilename('../prettier-test-files/testfile.js')
+
+ AssertFixer
+ \ {
+ \ 'command': ale#Escape(g:ale_javascript_prettier_standard_executable)
+ \ . ' --stdin'
+ \ . ' --stdin-filepath=%s ',
+ \ }