1
- import { nodeStackLineParser , stripSentryFramesAndReverse } from '../src/stacktrace ' ;
1
+ import { nodeStackLineParser , stripSentryFramesAndReverse } from '../src' ;
2
2
3
3
describe ( 'Stacktrace' , ( ) => {
4
4
describe ( 'stripSentryFramesAndReverse()' , ( ) => {
@@ -157,7 +157,7 @@ describe('node', () => {
157
157
const expectedOutput = {
158
158
filename : '/path/to/file.js' ,
159
159
module : undefined ,
160
- function : '<anonymous> ' ,
160
+ function : '? ' ,
161
161
lineno : 10 ,
162
162
colno : 5 ,
163
163
in_app : true ,
@@ -257,7 +257,7 @@ describe('node', () => {
257
257
258
258
expect ( result ) . toEqual ( {
259
259
filename : '/path/to/myFile.js' ,
260
- function : 'Object.<anonymous> ' ,
260
+ function : 'Object.? ' ,
261
261
lineno : 10 ,
262
262
colno : 20 ,
263
263
in_app : true ,
@@ -269,7 +269,7 @@ describe('node', () => {
269
269
const result = node ( line ) ;
270
270
expect ( result ) . toEqual ( {
271
271
filename : '/path/to/myFile.js' ,
272
- function : '<anonymous> ' ,
272
+ function : '? ' ,
273
273
lineno : 10 ,
274
274
colno : 20 ,
275
275
in_app : true ,
@@ -281,7 +281,7 @@ describe('node', () => {
281
281
const result = node ( line ) ;
282
282
expect ( result ) . toEqual ( {
283
283
filename : undefined ,
284
- function : 'Object.<anonymous> ' ,
284
+ function : 'Object.? ' ,
285
285
lineno : undefined ,
286
286
colno : undefined ,
287
287
in_app : false ,
@@ -294,7 +294,7 @@ describe('node', () => {
294
294
295
295
expect ( result ) . toEqual ( {
296
296
filename : '/path/to/node_modules/myModule/index.js' ,
297
- function : 'Object.<anonymous> ' ,
297
+ function : 'Object.? ' ,
298
298
lineno : 10 ,
299
299
colno : 20 ,
300
300
in_app : false ,
@@ -306,7 +306,7 @@ describe('node', () => {
306
306
const result = node ( line ) ;
307
307
expect ( result ) . toEqual ( {
308
308
filename : 'C:\\path\\to\\myFile.js' ,
309
- function : 'Object.<anonymous> ' ,
309
+ function : 'Object.? ' ,
310
310
lineno : 10 ,
311
311
colno : 20 ,
312
312
in_app : true ,
0 commit comments