diff options
author | Ben Falconer <ben@falconers.me.uk> | 2018-05-11 10:45:41 +0100 |
---|---|---|
committer | Ben Falconer <ben@falconers.me.uk> | 2018-05-15 14:36:31 +0100 |
commit | 8a1099bb59696185a77422ae12e3e384b0eeb81b (patch) | |
tree | b99b72dc018fe91e6e5caf62bb6ecf2547994805 /test/command_callback/test_sasslint_command_callback.vader | |
parent | 38c66d33fe8022803497c49239b06112ccbd0a83 (diff) | |
download | ale-8a1099bb59696185a77422ae12e3e384b0eeb81b.zip |
Run sass-lint from the target's directory
Diffstat (limited to 'test/command_callback/test_sasslint_command_callback.vader')
-rw-r--r-- | test/command_callback/test_sasslint_command_callback.vader | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/command_callback/test_sasslint_command_callback.vader b/test/command_callback/test_sasslint_command_callback.vader new file mode 100644 index 00000000..81ce893b --- /dev/null +++ b/test/command_callback/test_sasslint_command_callback.vader @@ -0,0 +1,17 @@ +Before: + runtime ale_linters/sass/sasslint.vim + + call ale#test#SetDirectory('/testplugin/test/command_callback') + call ale#test#SetFilename('test.sass') + +After: + Restore + + call ale#test#RestoreDirectory() + call ale#linter#Reset() + +Execute(The default sasslint command should be correct): + AssertEqual + \ 'cd ' . ale#Escape(expand('%:p:h')) . ' && ' + \ . ale#Escape('sass-lint') . ' -v -q -f compact %t', + \ ale_linters#sass#sasslint#GetCommand(bufnr('')) |