Skip to content

Commit edc0898

Browse files
committed
prettier
1 parent 3981171 commit edc0898

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

app/src/utils/points/eventPolling.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: BUSL-1.1
33
// NOTE: Converts to Apache-2.0 on 2029-06-11 per LICENSE.
44

5-
import { checkEventProcessingStatus } from './jobStatus';
5+
import { checkEventProcessingStatus } from '@/utils/points/jobStatus';
66

77
/**
88
* Polls the server to check if an event has been processed.

app/src/utils/points/jobStatus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: BUSL-1.1
33
// NOTE: Converts to Apache-2.0 on 2029-06-11 per LICENSE.
44

5-
import { POINTS_API_BASE_URL } from './api';
5+
import { POINTS_API_BASE_URL } from '@/utils/points/api';
66

77
export type JobStatusResponse = {
88
job_id: string;

app/tests/src/utils/points/recordEvents.test.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ jest.mock('@/utils/points/eventPolling', () => ({
3535
}));
3636

3737
jest.mock('@/utils/points/api', () => ({
38-
isSuccessfulStatus: jest.fn((status: number) => status === 200 || status === 202),
38+
isSuccessfulStatus: jest.fn(
39+
(status: number) => status === 200 || status === 202,
40+
),
3941
}));
4042

41-
const mockRegisterReferralPoints = registerReferralPoints as jest.MockedFunction<
42-
typeof registerReferralPoints
43-
>;
43+
const mockRegisterReferralPoints =
44+
registerReferralPoints as jest.MockedFunction<typeof registerReferralPoints>;
4445
const mockGetPointsAddress = getPointsAddress as jest.MockedFunction<
4546
typeof getPointsAddress
4647
>;
@@ -203,7 +204,9 @@ describe('recordReferralPointEvent', () => {
203204
const result = await recordReferralPointEvent(differentReferrer);
204205

205206
expect(result.success).toBe(false);
206-
expect(result.error).toBe('An unexpected error occurred. Please try again.');
207+
expect(result.error).toBe(
208+
'An unexpected error occurred. Please try again.',
209+
);
207210
expect(mockRegisterReferralPoints).not.toHaveBeenCalled();
208211
});
209212

@@ -213,7 +216,9 @@ describe('recordReferralPointEvent', () => {
213216
const result = await recordReferralPointEvent(differentReferrer);
214217

215218
expect(result.success).toBe(false);
216-
expect(result.error).toBe('An unexpected error occurred. Please try again.');
219+
expect(result.error).toBe(
220+
'An unexpected error occurred. Please try again.',
221+
);
217222
});
218223

219224
it('should log errors to console', async () => {

0 commit comments

Comments
 (0)