Skip to content

Commit 8d6874c

Browse files
abueideclaude
andcommitted
style: apply formatter to amplitude session plugin
Fix CI formatting check failures. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 5292b29 commit 8d6874c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/plugins/plugin-amplitudeSession/src/AmplitudeSessionPlugin.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,7 @@ export class AmplitudeSessionPlugin extends EventPlugin {
229229
const current = Date.now();
230230
const withinSessionLimit = this.withinMinSessionTime(current);
231231

232-
const isSessionExpired =
233-
this.sessionId === -1 || !withinSessionLimit;
232+
const isSessionExpired = this.sessionId === -1 || !withinSessionLimit;
234233

235234
if (this.sessionId >= 0 && !isSessionExpired) {
236235
return;

packages/plugins/plugin-amplitudeSession/src/__tests__/AmplitudeSessionPlugin.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,8 @@ describe('AmplitudeSessionPlugin', () => {
804804
)
805805
.map((call: any) => ({
806806
type: call[0] as string,
807-
session_id: call[1]?.integrations?.['Actions Amplitude']?.session_id as number,
807+
session_id: call[1]?.integrations?.['Actions Amplitude']
808+
?.session_id as number,
808809
callOrder: trackMock.mock.calls.indexOf(call),
809810
}));
810811
};
@@ -1064,11 +1065,11 @@ describe('AmplitudeSessionPlugin', () => {
10641065
plugin.resetPending = false;
10651066

10661067
// Rapid state transitions
1067-
appStateHandler('active'); // foreground — should start new session
1068+
appStateHandler('active'); // foreground — should start new session
10681069
jest.setSystemTime(baseTime + 10);
1069-
appStateHandler('background'); // background — updates lastEventTime
1070+
appStateHandler('background'); // background — updates lastEventTime
10701071
jest.setSystemTime(baseTime + 20);
1071-
appStateHandler('active'); // foreground again — does this start another?
1072+
appStateHandler('active'); // foreground again — does this start another?
10721073

10731074
// Flush microtasks
10741075
jest.advanceTimersByTime(0);

0 commit comments

Comments
 (0)