diff options
author | James Owen <james@cryptosense.com> | 2018-10-31 11:48:52 +0100 |
---|---|---|
committer | James Owen <james@cryptosense.com> | 2018-10-31 11:48:52 +0100 |
commit | 39fd7a09613145fe6799716da3d4158bf0d35092 (patch) | |
tree | e38e27e78d724d0995d447e8d1a4303b7be0979e /test/command_callback/test_jshint_command_callback.vader | |
parent | f75848b32ca25aec1d5e6c0a5aa9c7b1e6c64539 (diff) | |
download | ale-39fd7a09613145fe6799716da3d4158bf0d35092.zip |
Add some basic callback tests for jshint
Diffstat (limited to 'test/command_callback/test_jshint_command_callback.vader')
-rw-r--r-- | test/command_callback/test_jshint_command_callback.vader | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/command_callback/test_jshint_command_callback.vader b/test/command_callback/test_jshint_command_callback.vader new file mode 100644 index 00000000..d665a9c1 --- /dev/null +++ b/test/command_callback/test_jshint_command_callback.vader @@ -0,0 +1,14 @@ +Before: + call ale#assert#SetUpLinterTest('javascript', 'jshint') + +After: + call ale#assert#TearDownLinterTest() + +Execute(The default command should be correct): + + AssertLinter 'jshint', '''jshint'' --reporter unix --extract auto --filename %s -' + +Execute(Setting a config location should add the config parameter): + let g:ale_jshint_config_loc = '/some/file' + + AssertLinter 'jshint', '''jshint'' --reporter unix --extract auto --config ''/some/file'' --filename %s -' |