summaryrefslogtreecommitdiff
path: root/test/fixers/test_prettier_standard_callback.vader
blob: ab33fe200ad4193ae714e490a9d7bcf9c27e91a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 ',
  \ }