From 3403f9d12247884c18ffe7a1636fe12c3fb0f0da Mon Sep 17 00:00:00 2001 From: Markus Doits Date: Sun, 11 Sep 2016 14:07:42 +0200 Subject: add class variables to prepare setting external config --- spec/pronto/eslint_spec.rb | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'spec/pronto') 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 end end end + + describe '.files_to_lint' do + subject(:files_to_lint) { ESLintNpm.files_to_lint } + + it 'matches .js by default' do + expect(files_to_lint).to match('my_js.js') + end + + it 'matches .es6 by default' do + expect(files_to_lint).to match('my_js.es6') + end + end + + describe '.eslint_executable' do + subject(:eslint_executable) { ESLintNpm.eslint_executable } + + it 'is `eslint` by default' do + expect(eslint_executable).to eql('eslint') + end + end end end -- cgit v1.2.3