-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump grunt-mocha to 1.0.2 (+ phantomjs2 subdep) #777
Conversation
@@ -414,30 +414,22 @@ describe('integration', function () { | |||
); | |||
}); | |||
|
|||
it('should NOT capture breadcrumbs from XMLHttpRequests to the Sentry store endpoint', function (done) { | |||
it('should NOT denote XMLHttpRequests to the Sentry store endpoint as requiring breadcrumb capture', function (done) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to change this test because Phantom 2 throws a network error that DOES get collected as a (error) breadcrumb. Better that this test not attempt to make an XHR at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple small things but nbd if you want to merge as is.
// onreadystatechange fires), so enough to just verify that | ||
// __raven_xhr wasn't set on xhr object | ||
|
||
window.ravenData = '__raven_xhr' in xhr; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hasOwnProperty
a bit safer here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is 99.9999% unlikely to happen since we are controlling the environment, but sure.
breadcrumbs = Raven._breadcrumbs; | ||
|
||
assert.equal(breadcrumbs.length, 0); | ||
assert.equal(iframe.contentWindow.ravenData, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use assert.isFalse
here? Or at least strictEqual...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree this is better.
I was struggling to get tests running since I've upgraded to Phantom 2 for Sentry acceptance tests. Rather than figure things out, I've decided to blindly upgrade raven-js's deps to also use Phantom2.
cc @mattrobenolt @MaxBittker @LewisJEllis