Skip to content

Commit

Permalink
test: update error message for travis chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
waltjones committed May 7, 2020
1 parent bfb227a commit 5ca9143
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdks/rollbar.js/test/examples/webpack.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ describe('webpack app', function() {

// This has become necessary because Travis switched their Chrome stable
// version _down_ from 76 to 62, which handles this test case differently.
// 2020-05-06: Travis Chrome 62 is now returning the original message.
var version = parseInt(window.navigator.userAgent.match(new RegExp('^.*HeadlessChrome/([0-9]*).*$'))[1]);
var message = version > 62 ? 'webpack test error' : 'Script error.';
var message = version >= 62 ? 'webpack test error' : 'Script error.';

expect(body.data.body.trace.exception.message).to.eql(message);

Expand Down

0 comments on commit 5ca9143

Please sign in to comment.