]> git.immae.eu Git - github/fretlink/pronto-hlint.git/blobdiff - spec/pronto/eslint_spec.rb
Respect `.eslintignore`
[github/fretlink/pronto-hlint.git] / spec / pronto / eslint_spec.rb
index 7af0aa25f20030a5ed97e7e0da8812f74bfd208b..1117e15f1ed4372a9f565e7efd61e0e22ab1cc11 100644 (file)
@@ -25,6 +25,15 @@ module Pronto
         its(:count) { should == 9 }
         its(:'first.msg') { should == "Expected { after 'if' condition." }
       end
+
+      context 'repo with ignored and not ignored file, each with five warnings' do
+        include_context 'eslintignore repo'
+
+        let(:patches) { repo.diff('master') }
+
+        its(:count) { should == 5 }
+        its(:'first.msg') { should == "Use the function form of 'use strict'." }
+      end
     end
   end
 end