Skip to content

Commit f16e1a7

Browse files
author
Jonas Pfenniger
committed
Add the failing case in Firefox
1 parent 3bce3cf commit f16e1a7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/process.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,11 @@ $(document).ready(function() {
6565
equal(ajax_calls.length, 0);
6666
});
6767

68+
test("should send a proper url", function() {
69+
Raven.process("Fail");
70+
71+
var data = JSON.parse(ajax_calls[0].data);
72+
equal(data["sentry.interfaces.Http"].url.indexOf('undefined'), -1, "If the url contains the string 'undefined' it probably means there is an issue.");
73+
});
74+
6875
});

0 commit comments

Comments
 (0)