]>
git.immae.eu Git - github/fretlink/pronto-hlint.git/blob - spec/pronto/eslint_spec.rb
8bd0bc848f1bcf193945fc9262925cc9219c446a
5 let(:eslint) { ESLint
.new
}
8 subject
{ eslint
.run(patches
, nil) }
10 context
'patches are nil' do
15 context
'no patches' do
20 context
'patches with a four warnings' do
21 include_context
'test repo'
23 let(:patches) { repo
.diff('master') }
25 its(:count) { should
== 4 }
26 its(:'first.msg') { should
== "Expected { after 'if' condition." }