]> git.immae.eu Git - github/fretlink/pronto-hlint.git/blobdiff - spec/pronto/eslint_spec.rb
Use system eslint instead of eslintrb
[github/fretlink/pronto-hlint.git] / spec / pronto / eslint_spec.rb
index 1117e15f1ed4372a9f565e7efd61e0e22ab1cc11..27f57d170983c7561e68918d2a21f36b9cba7f36 100644 (file)
@@ -17,22 +17,22 @@ module Pronto
         it { should == [] }
       end
 
-      context 'patches with a four and a five warnings' do
+      context 'patches with a one and a four warnings' do
         include_context 'test repo'
 
         let(:patches) { repo.diff('master') }
 
-        its(:count) { should == 9 }
-        its(:'first.msg') { should == "Expected { after 'if' condition." }
+        its(:count) { should == 5 }
+        its(:'first.msg') { should == "'foo' is not defined." }
       end
 
-      context 'repo with ignored and not ignored file, each with five warnings' do
+      context 'repo with ignored and not ignored file, each with three 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'." }
+        its(:count) { should == 3 }
+        its(:'first.msg') { should == "'HelloWorld' is defined but never used" }
       end
     end
   end