summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIan Campbell <ipcampbell@gmail.com>2019-10-21 20:23:33 -0400
committerIan Campbell <ipcampbell@gmail.com>2019-10-21 20:46:54 -0400
commitcf5120ba756b339ef78a285d46814fa13b04aafd (patch)
tree1ee38aa365784cecbe5d34488096f48b7691a4a5 /test
parent79e9ae45507aab97d8f40063cf07a4ea6e69b6f7 (diff)
downloadale-cf5120ba756b339ef78a285d46814fa13b04aafd.zip
Remove standardts fixer in favor of allowing standard.vim fixer to handle JavaScript or TypeScript options.
Diffstat (limited to 'test')
-rw-r--r--test/fixers/test_standardts_fixer_callback.vader31
1 files changed, 0 insertions, 31 deletions
diff --git a/test/fixers/test_standardts_fixer_callback.vader b/test/fixers/test_standardts_fixer_callback.vader
deleted file mode 100644
index 092465f5..00000000
--- a/test/fixers/test_standardts_fixer_callback.vader
+++ /dev/null
@@ -1,31 +0,0 @@
-Before:
- call ale#test#SetDirectory('/testplugin/test/fixers')
-
- unlet! b:ale_typescript_standard_executable
- unlet! b:ale_typescript_standard_options
-
-After:
- call ale#test#RestoreDirectory()
-
-Execute(The executable path should be correct):
- call ale#test#SetFilename('../eslint-test-files/react-app/subdir/testfile.js')
-
- AssertEqual
- \ {
- \ 'read_temporary_file': 1,
- \ 'command': (has('win32') ? 'node.exe ' : '')
- \ . ale#Escape(ale#path#Simplify(g:dir . '/../eslint-test-files/react-app/node_modules/standard/bin/cmd.js'))
- \ . ' --fix %t',
- \ },
- \ ale#fixers#standardts#Fix(bufnr(''))
-
-Execute(Custom options should be supported):
- let b:ale_typescript_standard_use_global = 1
- let b:ale_typescript_standard_options = '--foo-bar'
-
- AssertEqual
- \ {
- \ 'read_temporary_file': 1,
- \ 'command': ale#Escape('standard') . ' --foo-bar --fix %t',
- \ },
- \ ale#fixers#standardts#Fix(bufnr(''))