]>
git.immae.eu Git - github/fretlink/pronto-hlint.git/blob - spec/pronto/eslint_spec.rb
5 let(:eslint) { ESLintNpm
.new(patches
) }
10 context
'patches are nil' do
15 context
'no patches' do
20 context
'patches with a one and a four warnings' do
21 include_context
'test repo'
23 let(:patches) { repo
.diff('master') }
25 its(:count) { should
== 5 }
26 its(:'first.msg') { should
== "'foo' is not defined." }
29 context
'repo with ignored and not ignored file, each with three warnings' do
30 include_context
'eslintignore repo'
32 let(:patches) { repo
.diff('master') }
34 its(:count) { should
== 3 }
35 its(:'first.msg') { should
== "'HelloWorld' is defined but never used." }