Skip to content

Commit

Permalink
update stack trace lines to account for extra file
Browse files Browse the repository at this point in the history
  • Loading branch information
t2t2 authored and sfishel-splunk committed Jun 25, 2022
1 parent 7edf31a commit 7b99dfe
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions integration-tests/tests/errors/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@ module.exports = {
await browser.assert.strictEqual(tags['error.message'], ERROR_MESSAGE_MAP[browserName]);

const ERROR_STACK_MAP = {
safari: `global code@${url}:61:15`,
chrome: `TypeError: Cannot set properties of null (setting 'anyField')\n at ${url}:61:25`,
microsoftedge: `TypeError: Cannot set properties of null (setting 'anyField')\n at ${url}:61:25`,
firefox: `@${url}:61:7\n`,
'internet explorer': `TypeError: Unable to set property 'anyField' of undefined or null reference\n at Global code (${url}:61:7)`,
safari: `global code@${url}:62:15`,
chrome: `TypeError: Cannot set properties of null (setting 'anyField')\n at ${url}:62:25`,
microsoftedge: `TypeError: Cannot set properties of null (setting 'anyField')\n at ${url}:62:25`,
firefox: `@${url}:62:7\n`,
'internet explorer': `TypeError: Unable to set property 'anyField' of undefined or null reference\n at Global code (${url}:62:7)`,
};
await browser.assert.strictEqual(tags['error.stack'], ERROR_STACK_MAP[browserName]);
},
Expand Down Expand Up @@ -156,11 +156,11 @@ module.exports = {
await browser.assert.strictEqual(tags['error.message'], ERROR_MESSAGE_MAP[browserName]);

const ERROR_STACK_MAP = {
safari: `global code@${url}:61:15`,
microsoftedge: `TypeError: Cannot set properties of null (setting 'anyField')\n at ${url}:61:25`,
chrome: `TypeError: Cannot set properties of null (setting 'anyField')\n at ${url}:61:25`,
firefox: `@${url}:61:7\n`,
'internet explorer': `TypeError: Unable to set property 'anyField' of undefined or null reference\n at Global code (${url}:61:7)`,
safari: `global code@${url}:62:15`,
microsoftedge: `TypeError: Cannot set properties of null (setting 'anyField')\n at ${url}:62:25`,
chrome: `TypeError: Cannot set properties of null (setting 'anyField')\n at ${url}:62:25`,
firefox: `@${url}:62:7\n`,
'internet explorer': `TypeError: Unable to set property 'anyField' of undefined or null reference\n at Global code (${url}:62:7)`,
};
await browser.assert.strictEqual(tags['error.stack'], ERROR_STACK_MAP[browserName]);
},
Expand Down

0 comments on commit 7b99dfe

Please sign in to comment.