Skip to content

Commit

Permalink
Use top-level warn in JS errors check (#28745)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski committed Jan 15, 2024
1 parent 7f471e7 commit b4c3321
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/support/javascript_errors.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
expect(error.level).to_not eq('SEVERE'), error.message
next unless error.level == 'WARNING'

$stderr.warn 'WARN: javascript warning'
$stderr.warn error.message
warn 'WARN: javascript warning'
warn error.message
end
end
end
Expand Down

0 comments on commit b4c3321

Please sign in to comment.