@@ -52,7 +52,7 @@ describe('onRequestError', () => {
52
52
const errorRequest = {
53
53
path : '/test-path?some=param' ,
54
54
method : 'GET' ,
55
- headers : { } ,
55
+ headers : { }
56
56
} ;
57
57
const errorContext : {
58
58
routerKind : 'Pages Router' ;
@@ -63,22 +63,18 @@ describe('onRequestError', () => {
63
63
routerKind : 'Pages Router' ,
64
64
routePath : '/test-path' ,
65
65
routeType : 'render' ,
66
- revalidateReason : undefined ,
66
+ revalidateReason : undefined
67
67
} ;
68
68
69
69
await onRequestError ( error , errorRequest , errorContext ) ;
70
70
71
71
expect ( getTelemetryStub ) . to . have . been . calledOnceWith ( fakeApp ) ;
72
- expect ( captureErrorStub ) . to . have . been . calledOnceWith (
73
- fakeTelemetry ,
74
- error ,
75
- {
76
- 'nextjs_path' : '/test-path?some=param' ,
77
- 'nextjs_method' : 'GET' ,
78
- 'nextjs_router_kind' : 'Pages Router' ,
79
- 'nextjs_route_path' : '/test-path' ,
80
- 'nextjs_route_type' : 'render'
81
- }
82
- ) ;
72
+ expect ( captureErrorStub ) . to . have . been . calledOnceWith ( fakeTelemetry , error , {
73
+ 'nextjs_path' : '/test-path?some=param' ,
74
+ 'nextjs_method' : 'GET' ,
75
+ 'nextjs_router_kind' : 'Pages Router' ,
76
+ 'nextjs_route_path' : '/test-path' ,
77
+ 'nextjs_route_type' : 'render'
78
+ } ) ;
83
79
} ) ;
84
80
} ) ;
0 commit comments