Skip to content

Commit 916f3d3

Browse files
committed
Run yarn format
1 parent 72b0288 commit 916f3d3

File tree

3 files changed

+32
-16
lines changed

3 files changed

+32
-16
lines changed

packages/crashlytics/src/angular/index.test.ts

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ describe('FirebaseErrorHandler', () => {
6161
fakeCrashlytics = {} as Crashlytics;
6262

6363
captureErrorStub = stub(crashlytics, 'captureError');
64-
getCrashlyticsStub = stub(crashlytics, 'getCrashlytics').returns(fakeCrashlytics);
64+
getCrashlyticsStub = stub(crashlytics, 'getCrashlytics').returns(
65+
fakeCrashlytics
66+
);
6567

6668
TestBed.configureTestingModule({
6769
imports: [
@@ -91,9 +93,13 @@ describe('FirebaseErrorHandler', () => {
9193
const testError = new Error('Test error message');
9294
errorHandler.handleError(testError);
9395
expect(getCrashlyticsStub).to.have.been.called;
94-
expect(captureErrorStub).to.have.been.calledWith(fakeCrashlytics, testError, {
95-
'angular_route_path': '/static-route'
96-
});
96+
expect(captureErrorStub).to.have.been.calledWith(
97+
fakeCrashlytics,
98+
testError,
99+
{
100+
'angular_route_path': '/static-route'
101+
}
102+
);
97103
});
98104

99105
it('should remove dynamic content from route', async () => {
@@ -102,9 +108,13 @@ describe('FirebaseErrorHandler', () => {
102108
const testError = new Error('Test error message');
103109
errorHandler.handleError(testError);
104110
expect(captureErrorStub).to.have.been.called;
105-
expect(captureErrorStub).to.have.been.calledWith(fakeCrashlytics, testError, {
106-
// eslint-disable-next-line camelcase
107-
angular_route_path: '/dynamic/:id/route'
108-
});
111+
expect(captureErrorStub).to.have.been.calledWith(
112+
fakeCrashlytics,
113+
testError,
114+
{
115+
// eslint-disable-next-line camelcase
116+
angular_route_path: '/dynamic/:id/route'
117+
}
118+
);
109119
});
110120
});

packages/crashlytics/src/next.test.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,16 @@ describe('nextOnRequestError', () => {
7171
await nextOnRequestError()(error, errorRequest, errorContext);
7272

7373
expect(getCrashlyticsStub).to.have.been.calledOnceWith(fakeApp);
74-
expect(captureErrorStub).to.have.been.calledOnceWith(fakeCrashlytics, error, {
75-
'nextjs_path': '/test-path?some=param',
76-
'nextjs_method': 'GET',
77-
'nextjs_router_kind': 'Pages Router',
78-
'nextjs_route_path': '/test-path',
79-
'nextjs_route_type': 'render'
80-
});
74+
expect(captureErrorStub).to.have.been.calledOnceWith(
75+
fakeCrashlytics,
76+
error,
77+
{
78+
'nextjs_path': '/test-path?some=param',
79+
'nextjs_method': 'GET',
80+
'nextjs_router_kind': 'Pages Router',
81+
'nextjs_route_path': '/test-path',
82+
'nextjs_route_type': 'render'
83+
}
84+
);
8185
});
8286
});

packages/crashlytics/src/register.node.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ export function registerCrashlytics(): void {
2828
CRASHLYTICS_TYPE,
2929
(container, { instanceIdentifier }) => {
3030
if (instanceIdentifier === undefined) {
31-
throw new Error('CrashlyticsService instance identifier is undefined');
31+
throw new Error(
32+
'CrashlyticsService instance identifier is undefined'
33+
);
3234
}
3335

3436
// TODO: change to default endpoint once it exists

0 commit comments

Comments
 (0)