mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
update rubocop config
This commit is contained in:
parent
1b70cec73e
commit
7cfbeda24d
2 changed files with 3 additions and 2 deletions
|
@ -49,7 +49,7 @@ Metrics/PerceivedComplexity:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Metrics/ParameterLists:
|
Metrics/ParameterLists:
|
||||||
Enabled: false
|
CountKeywordArgs: false
|
||||||
|
|
||||||
Lint/UnusedMethodArgument:
|
Lint/UnusedMethodArgument:
|
||||||
Exclude:
|
Exclude:
|
||||||
|
|
|
@ -45,7 +45,8 @@ module Capybara
|
||||||
unless functions.empty?
|
unless functions.empty?
|
||||||
hints_js << <<~EACH_JS
|
hints_js << <<~EACH_JS
|
||||||
return arguments[0].map(function(el){
|
return arguments[0].map(function(el){
|
||||||
return [#{functions.join(',')}].map(function(fn){ return fn.call(null, el) }); });
|
return [#{functions.join(',')}].map(function(fn){ return fn.call(null, el) });
|
||||||
|
});
|
||||||
EACH_JS
|
EACH_JS
|
||||||
|
|
||||||
hints = es_context.execute_script hints_js, els
|
hints = es_context.execute_script hints_js, els
|
||||||
|
|
Loading…
Add table
Reference in a new issue