We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a82d153 commit 17354d7Copy full SHA for 17354d7
test/raven.client.js
@@ -192,13 +192,13 @@ describe('raven.Client', function(){
192
193
it('should send a plain text "error" with a synthesized stack', function(done){
194
var old = client.send;
195
- client.send = function(kwargs) {
+ client.send = function mockSend(kwargs) {
196
client.send = old;
197
198
kwargs['message'].should.equal("Error: wtf?");
199
kwargs.should.have.property('sentry.interfaces.Stacktrace');
200
var stack = kwargs['sentry.interfaces.Stacktrace'];
201
- stack.frames[0]['function'].should.equal('captureError');
+ stack.frames[stack.frames.length-1]['function'].should.equal('Client.captureError');
202
done();
203
};
204
client.captureError('wtf?');
0 commit comments