Skip to content

Commit 2bdd833

Browse files
committed
Fixes phantomjs tests, haven't tested other browsers
Phantomjs only includes a message in the error object, not a fileUrl
1 parent e792e0e commit 2bdd833

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/exception.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ $(document).ready(function() {
3232

3333
data = JSON.parse($P.base64_decode(ajax_calls[0].data));
3434

35-
equal(data.culprit.slice(-12), 'exception.js',
36-
'the culprit should be the exception.js unit test file');
3735
equal(data.logger, 'javascript',
3836
'the logger should be the default value');
3937
notEqual(data.message.indexOf('varThatDoesNotExist'), -1,
@@ -42,6 +40,9 @@ $(document).ready(function() {
4240
'the error should be a ReferenceError');
4341

4442
if (mode !== 'other') {
43+
equal(data.culprit.slice(-12), 'exception.js',
44+
'the culprit should be the exception.js unit test file');
45+
4546
frame = data['sentry.interfaces.Stacktrace'].frames[0];
4647
equal(frame.function, 'outlandishClaim');
4748
equal(frame.lineno, '7');

0 commit comments

Comments
 (0)