aboutsummaryrefslogtreecommitdiffhomepage
path: root/spec/pronto/eslint_spec.rb
diff options
context:
space:
mode:
authorMarkus Doits <markus.doits@stellenticket.de>2016-09-11 14:07:42 +0200
committerMarkus Doits <markus.doits@stellenticket.de>2016-09-11 14:07:42 +0200
commit3403f9d12247884c18ffe7a1636fe12c3fb0f0da (patch)
treea343b6b25b22553489e95c3ffc93e5b9502f03b9 /spec/pronto/eslint_spec.rb
parent7c0daa97e07ca409d1ee9f394adb4967196c6ca1 (diff)
downloadpronto-hlint-3403f9d12247884c18ffe7a1636fe12c3fb0f0da.tar.gz
pronto-hlint-3403f9d12247884c18ffe7a1636fe12c3fb0f0da.tar.zst
pronto-hlint-3403f9d12247884c18ffe7a1636fe12c3fb0f0da.zip
add class variables to prepare setting external config
Diffstat (limited to 'spec/pronto/eslint_spec.rb')
-rw-r--r--spec/pronto/eslint_spec.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/pronto/eslint_spec.rb b/spec/pronto/eslint_spec.rb
index 2065998..7bbc77a 100644
--- a/spec/pronto/eslint_spec.rb
+++ b/spec/pronto/eslint_spec.rb
@@ -51,5 +51,25 @@ module Pronto
51 end 51 end
52 end 52 end
53 end 53 end
54
55 describe '.files_to_lint' do
56 subject(:files_to_lint) { ESLintNpm.files_to_lint }
57
58 it 'matches .js by default' do
59 expect(files_to_lint).to match('my_js.js')
60 end
61
62 it 'matches .es6 by default' do
63 expect(files_to_lint).to match('my_js.es6')
64 end
65 end
66
67 describe '.eslint_executable' do
68 subject(:eslint_executable) { ESLintNpm.eslint_executable }
69
70 it 'is `eslint` by default' do
71 expect(eslint_executable).to eql('eslint')
72 end
73 end
54 end 74 end
55end 75end