aboutsummaryrefslogtreecommitdiffhomepage
path: root/spec/pronto
diff options
context:
space:
mode:
Diffstat (limited to 'spec/pronto')
-rw-r--r--spec/pronto/eslint_spec.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/pronto/eslint_spec.rb b/spec/pronto/eslint_spec.rb
index a00a05b..0924f30 100644
--- a/spec/pronto/eslint_spec.rb
+++ b/spec/pronto/eslint_spec.rb
@@ -58,6 +58,15 @@ module Pronto
58 end 58 end
59 59
60 context( 60 context(
61 'with cmd_line_opts to include .html',
62 config: { 'cmd_line_opts' => '--ext .html' }
63 ) do
64 it 'returns correct number of errors' do
65 expect(run.count).to eql 5
66 end
67 end
68
69 context(
61 'with different eslint executable', 70 'with different eslint executable',
62 config: { 'eslint_executable' => './custom_eslint.sh' } 71 config: { 'eslint_executable' => './custom_eslint.sh' }
63 ) do 72 ) do
@@ -139,6 +148,16 @@ module Pronto
139 expect(eslint_command_line).not_to include(path) 148 expect(eslint_command_line).not_to include(path)
140 end 149 end
141 end 150 end
151
152 context(
153 'with some command line options',
154 config: { 'cmd_line_opts' => '--my command --line opts' }
155 ) do
156 it 'includes the custom command line options' do
157 eslint.read_config
158 expect(eslint_command_line).to include('--my command --line opts')
159 end
160 end
142 end 161 end
143 end 162 end
144end 163end