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 f87e0fc commit 9fd364eCopy full SHA for 9fd364e
test/raven.test.js
@@ -71,6 +71,16 @@ describe('TraceKit', function(){
71
assert.equal(trace.stack[5].func, 'namedFunc4');
72
});
73
74
+
75
+ describe('.computeStackTrace', function() {
76
+ it('should handle a native error object', function() {
77
+ var ex = new Error('test');
78
+ var stack = TraceKit.computeStackTrace(ex);
79
+ assert.deepEqual(stack.name, 'Error');
80
+ assert.deepEqual(stack.message, 'test');
81
+ });
82
83
84
describe('error notifications', function(){
85
var testMessage = "__mocha_ignore__";
86
var subscriptionHandler;
0 commit comments