Commit fc1466ae authored by Dan Davison's avatar Dan Davison

Merge branch 'acunskis-eventually-matcher-improvements' into 'master'

E2E: Remove unnecessary switch case in eventually_matcher

See merge request gitlab-org/gitlab!69188
parents de200ba4 93d19c14
......@@ -108,10 +108,7 @@ module QA
#
# @return [String]
def operator_msg
case operator
when 'eq' then 'equal'
else operator
end
operator == 'eq' ? 'equal' : operator
end
# Expect operator
......@@ -127,7 +124,7 @@ module QA
def expectation_args
if operator.include?('truthy') || operator.include?('falsey') || operator.include?('empty')
operator
elsif operator == "include" && expected.is_a?(Array)
elsif operator == 'include' && expected.is_a?(Array)
[operator, *expected]
else
[operator, expected]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment