+6
-2
lines changedFilter options
+6
-2
lines changed Original file line number Diff line number Diff line change
@@ -225,10 +225,13 @@ describe('ErrorStackParser', function() {
225
225
226
226
it('should handle spaces in Node.js stacks', function() {
227
227
var stackframes = unit.parse(CapturedExceptions.NODE_WITH_SPACES);
228
-
expect(stackframes.length).toBe(7);
228
+
expect(stackframes.length).toBe(8);
229
229
expect(stackframes[0].fileName).toEqual('/var/app/scratch/my project/index.js');
230
230
expect(stackframes[0].lineNumber).toBe(2);
231
231
expect(stackframes[0].columnNumber).toBe(9);
232
+
expect(stackframes[1].fileName).toEqual('/var/app/scratch/my project/index.js');
233
+
expect(stackframes[1].lineNumber).toBe(2);
234
+
expect(stackframes[1].columnNumber).toBe(9);
232
235
});
233
236
});
234
237
});
Original file line number Diff line number Diff line change
@@ -387,7 +387,8 @@ CapturedExceptions.EDGE_20_NESTED_EVAL = {
387
387
CapturedExceptions.NODE_WITH_SPACES = {
388
388
name: 'Error',
389
389
message: '',
390
-
stack: 'Error\n at Object.<anonymous> ' +
390
+
stack: 'Error\n at /var/app/scratch/my '+
391
+
'project/index.js:2:9\n at Object.<anonymous> ' +
391
392
'(/var/app/scratch/my ' +
392
393
'project/index.js:2:9)\n at Module._compile ' +
393
394
'(internal/modules/cjs/loader.js:774:30)\n at ' +
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4