aboutsummaryrefslogtreecommitdiffhomepage
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-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