summaryrefslogtreecommitdiff
path: root/test/fixers/test_prettier_standard_callback.vader
blob: d0cf4ecfb0c0acf1799c1caf0b76b0a1612b8438 (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('../test-files/prettier/testfile.js')

  AssertFixer
  \ {
  \   'command': ale#Escape(g:ale_javascript_prettier_standard_executable)
  \     . ' --stdin'
  \     . ' --stdin-filepath=%s ',
  \ }